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

# Packages

Package snapshot implements a journalled, dynamic state dump.

# Functions

New creates a new state from a given trie.
NewDatabase creates a state database with the provided data sources.
NewDatabaseForTesting is similar to NewDatabase, but it initializes the caching db by using an ephemeral memory db with default config for testing.
NewHookedState wraps the given stateDb with the given hooks.
NewStateSync creates a new state trie download scheduler.

# Constants

TriesInMemory represents the number of layers that are kept in RAM.

# Structs

AccessEvents lists the locations of the state that are being accessed during the production of a block.
CachingDB is an implementation of Database interface.
Dump represents the full dump in a collected format, as one large map.
DumpAccount represents an account in the state.
DumpConfig is a set of options to control what portions of the state will be iterated and collected.
StateDB structs within the ethereum protocol are used to store anything within the merkle trie.

# Interfaces

ContractCodeReader defines the interface for accessing contract code.
Database wraps access to tries and contract code.
DumpCollector interface which the state trie calls during iteration.
Reader defines the interface for accessing accounts, storage slots and contract code associated with a specific state.
StateReader defines the interface for accessing accounts and storage slots associated with a specific state.
Trie is a Ethereum Merkle Patricia trie.

# Type aliases