bootstrapStorage

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

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

type BootstrapHeaderInfo struct {
	ShardId uint32
	Nonce   uint64
	Hash    []byte
}

BootstrapHeaderInfo is used to store information about a header

type MiniBlocksInMeta

type MiniBlocksInMeta struct {
	MetaHash         []byte
	MiniBlocksHashes [][]byte
}

MiniBlocksInMeta is used to store all mini blocks hashes for a metablock hash

Jump to

Keyboard shortcuts

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