initializer

package
v0.31.14 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 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 archive.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 TODO(leo): use the code from flow-go

Types

This section is empty.

Jump to

Keyboard shortcuts

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