package
1.1.7
Repository: https://github.com/core-coin/go-core.git
Documentation: pkg.go.dev

# Functions

AccountRLP converts a state.Account content into a slim snapshot version RLP encoded.
GenerateTrieRoot takes an account iterator and reproduces the root hash.
New attempts to load an already existing snapshot from a persistent key-value store (with a number of memory layers from a journal), ensuring that the head of the snapshot matches the expected one.
SlimToFull converts data on the 'slim RLP' format into the full RLP-format.

# Variables

ErrNotCoveredYet is returned from data accessors if the underlying snapshot is being generated currently and the requested data item is not yet in the range of accounts covered.
ErrSnapshotStale is returned from data accessors if the underlying snapshot layer had been invalidated due to the chain progressing forward far enough to not maintain the layer's original state.

# Structs

Account is a slim version of a state.Account, where the root and code hash are replaced with a nil byte slice for empty accounts.
SnapshotTree is a Core state snapshot tree.

# Interfaces

AccountIterator is an iterator to step over all the accounts in a snapshot, which may or may npt be composed of multiple layers.
Snapshot represents the functionality supported by a snapshot storage layer.