Documentation ¶
Index ¶
- type Bootstrapper
- func (b *Bootstrapper) BootstrapExecutionDatabase(db *badger.DB, commit flow.StateCommitment, genesis *flow.Header) error
- func (b *Bootstrapper) BootstrapLedger(ledger storage.Ledger, servicePublicKey flow.AccountPublicKey, ...) (flow.StateCommitment, error)
- func (b *Bootstrapper) IsBootstrapped(db *badger.DB) (flow.StateCommitment, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 *badger.DB, commit flow.StateCommitment, genesis *flow.Header) error
func (*Bootstrapper) BootstrapLedger ¶
func (b *Bootstrapper) BootstrapLedger( ledger storage.Ledger, servicePublicKey flow.AccountPublicKey, initialTokenSupply cadence.UFix64, chain flow.Chain, ) (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 *badger.DB) (flow.StateCommitment, bool, error)
IsBootstrapped returns whether the execution database has been bootstrapped, if yes, returns the root statecommitment
Click to show internal directories.
Click to hide internal directories.