Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapIndexers ¶
func BootstrapIndexers( log zerolog.Logger, chainID flow.ChainID, extendedStorage Storage, lockManager storage.LockManager, state protocol.State, index storage.Index, headers storage.Headers, guarantees storage.Guarantees, collections storage.Collections, events storage.Events, results storage.LightTransactionResults, scriptExecutor execution.ScriptExecutor, registers storage.RegisterIndex, backfillDelay time.Duration, ) (*extended.ExtendedIndexer, error)
Types ¶
type Storage ¶
type Storage struct {
DB storage.DB
AccountTransactionsBootstrapper storage.AccountTransactionsBootstrapper
FungibleTokenTransfersBootstrapper storage.FungibleTokenTransfersBootstrapper
NonFungibleTokenTransfersBootstrapper storage.NonFungibleTokenTransfersBootstrapper
ScheduledTransactionsBootstrapper storage.ScheduledTransactionsIndexBootstrapper
ContractDeploymentsBootstrapper storage.ContractDeploymentsIndexBootstrapper
}
func OpenExtendedIndexDB ¶
func OpenExtendedIndexDB( log zerolog.Logger, dbPath string, sealedRootHeight uint64, ) (Storage, error)
OpenExtendedIndexDB opens the pebble database for extended indexes and creates the account transactions bootstrapper store. This must run synchronously during node initialization so that the store is available for consumers (e.g. the ExtendedBackend) before async components start.
No error returns are expected during normal operation.
Click to show internal directories.
Click to hide internal directories.