Help us shape the future of Go! Take the 2026 Go Developer Survey

bootstrap

package
v0.41.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: AGPL-3.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportRegistersFromCheckpoint added in v0.33.1

func ImportRegistersFromCheckpoint(logger zerolog.Logger, checkpointFile string, checkpointHeight uint64, checkpointRootHash ledger.RootHash, pdb *pebble.DB, workerCount int) error

Types

type Bootstrapper

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

func NewBootstrapper

func NewBootstrapper(logger zerolog.Logger) *Bootstrapper

func (*Bootstrapper) BootstrapExecutionDatabase

func (b *Bootstrapper) BootstrapExecutionDatabase(
	db storage.DB,
	rootSeal *flow.Seal,
) error

func (*Bootstrapper) BootstrapLedger

func (b *Bootstrapper) BootstrapLedger(
	ledger ledger.Ledger,
	servicePublicKey flow.AccountPublicKey,
	chain flow.Chain,
	opts ...fvm.BootstrapProcedureOption,
) (flow.StateCommitment, error)

BootstrapLedger adds the above root account to the ledger and initializes execution node-only data

func (*Bootstrapper) IsBootstrapped

func (b *Bootstrapper) IsBootstrapped(db storage.DB) (flow.StateCommitment, bool, error)

IsBootstrapped returns whether the execution database has been bootstrapped, if yes, returns the root statecommitment

Jump to

Keyboard shortcuts

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