package
0.11.1
Repository: https://github.com/iotexproject/iotex-core.git
Documentation: pkg.go.dev

# Functions

DefaultStateDBOption creates default state db from config.
DefaultTrieOption creates trie from config for state factory.
InMemStateDBOption creates in memory state db.
InMemTrieOption creates in memory trie for state factory.
NewFactory creates a new state factory.
NewStateDB creates a new state db.
PrecreatedStateDBOption uses pre-created state db.
PrecreatedTrieDBOption uses pre-created trie DB for state factory.

# Constants

AccountKVNamespace is the bucket name for account.
ArchiveNamespacePrefix is the prefix of the buckets storing history data.
ArchiveTrieNamespace is the bucket for the latest state view.
ArchiveTrieRootKey indicates the key of accountTrie root hash in underlying DB.
CurrentHeightKey indicates the key of current factory height in underlying DB.

# Variables

ErrNoArchiveData is the error that the node have no archive data.
ErrNotSupported is the error that the statedb is not for archive mode.

# Interfaces

No description provided by the author

# Type aliases

Option sets Factory construction parameter.
StateDBOption sets stateDB construction parameter.