index

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// IndexDuration is the interval time of index scan
	IndexDuration = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	// contains filtered or unexported fields
}

Index is the main type of this module

func New

func New(cs modules.ConsensusSet, tpool modules.TransactionPool, gw modules.Gateway, wallet modules.Wallet, persistDir string, initConfig config.IndexConfig) (*Index, error)

New returns an initialized Index.

func (*Index) Close

func (index *Index) Close() error

Close shuts down the index.

func (*Index) Scan

func (index *Index) Scan() error

Scan will go through every block and try to sync every block info

Jump to

Keyboard shortcuts

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