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 ¶
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.
Click to show internal directories.
Click to hide internal directories.