initializer

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchupBlocks

func CatchupBlocks(db *badger.DB, read dps.Reader) ([]flow.Identifier, error)

CatchupBlocks will determine, based on what is in the protocol state and index databases, which blocks we need to download the execution records for in order to properly resume catching up with consensus.

func ProtocolState

func ProtocolState(file io.Reader, db *badger.DB) error

ProtocolState initializes the Flow protocol state in the given database. The code is inspired by the related unexported code in the Flow Go code base: https://github.com/onflow/flow-go/blob/v0.21.0/cmd/bootstrap/cmd/finalize.go#L452

Types

This section is empty.

Jump to

Keyboard shortcuts

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