block

package
v0.0.0-...-73b4c3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const RollBackBlockNumber = 3
View Source
const TapBlock = "block"

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer struct {
	*sync.BaseSync
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, client *rpcclient.Client, db *gorm.DB) *Indexer

func (*Indexer) RollBack

func (s *Indexer) RollBack(blockHeight int64, backNumber int64) error

func (*Indexer) Start

func (s *Indexer) Start()

func (*Indexer) SyncBlock

func (s *Indexer) SyncBlock() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL