Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureInitialImport ¶
EnsureInitialImport imports the genesis block if needed. Returns true if the initial import occurred.
Types ¶
type ImportHelper ¶
type ImportHelper struct { // GenesisJSONPath is the location of the genesis file GenesisJSONPath string // BlockFileLimit is the number of block files to process. BlockFileLimit int Log *log.Logger }
ImportHelper glues together a directory full of block files and an Importer objects.
func NewImportHelper ¶
func NewImportHelper(genesisJSONPath string, blockFileLimite int, l *log.Logger) *ImportHelper
NewImportHelper builds an ImportHelper
type Importer ¶
type Importer interface {
ImportBlock(vb *ledgercore.ValidatedBlock) error
}
Importer is used to import blocks into an idb.IndexerDb object.
func NewImporter ¶
NewImporter creates a new importer object.
Click to show internal directories.
Click to hide internal directories.