Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilBootStorer = errors.New("nil boot storer")
ErrNilBootStorer signals that an operation has been attempted to or with a nil storer implementation
View Source
var ErrNilMarshalizer = errors.New("nil Marshalizer")
ErrNilMarshalizer signals that an operation has been attempted to or with a nil Marshalizer implementation
Functions ¶
func NewBootstrapStorer ¶
func NewBootstrapStorer( marshalizer marshal.Marshalizer, store storage.Storer, ) (*bootstrapStorer, error)
NewBootstrapStorer will return an instance of bootstrap storer
Types ¶
type BootstrapData ¶
type BootstrapData struct { HeaderInfo BootstrapHeaderInfo LastNotarizedHeaders []BootstrapHeaderInfo LastFinals []BootstrapHeaderInfo ProcessedMiniBlocks []MiniBlocksInMeta HighestFinalNonce uint64 LastRound int64 }
BootstrapData is used to store information that are needed for bootstrap
type BootstrapHeaderInfo ¶
BootstrapHeaderInfo is used to store information about a header
type MiniBlocksInMeta ¶
MiniBlocksInMeta is used to store all mini blocks hashes for a metablock hash
Click to show internal directories.
Click to hide internal directories.