{"modulePath":"github.com/onflow/flow-archive","version":"v0.31.9-decrease-wait-interval","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package initializer\n\n## Functions\n\n```go\nfunc CatchupBlocks(db *badger.DB, read archive.Reader) ([]flow.Identifier, error)\n```\nCatchupBlocks 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.\n\n```go\nfunc ProtocolState(file io.Reader, db *badger.DB) error\n```\nProtocolState 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](https://github.com/onflow/flow-go/blob/v0.21.0/cmd/bootstrap/cmd/finalize.go#L452) TODO(leo): use the code from flow-go\n\n","path":"github.com/onflow/flow-archive/service/initializer","name":"initializer","synopsis":"","isRedistributable":true}
