bootstrap

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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