package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Functions

CheckDanglingStorage iterates the snap storage data, and verifies that all storage also has corresponding account data.
CheckJournalAccount shows information about an account, from the disk layer and up through the diff layers.
GenerateTrie takes the whole snapshot tree as the input, traverses all the accounts as well as the corresponding storages and regenerate the whole state (account trie + all storage tries).
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.

# Variables

ErrNotConstructed is returned if the callers want to iterate the snapshot while the generation is not finished yet.
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

Config includes the configurations for snapshots.
Tree is an Ethereum state snapshot tree.

# Interfaces

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