package
0.14.0
Repository: https://github.com/ava-labs/coreth.git
Documentation: pkg.go.dev

# Functions

AssertTrieConsistency ensures given trieDB [a] and [b] both have the same non-empty trie at [root].
CorruptTrie deletes every [n]th trie node from the trie given by [tr] from the underlying [db].
FillAccounts adds [numAccounts] randomly generated accounts to the secure trie at [root] and commits it to [trieDB].
FillTrie fills a given trie with [numKeys] number of keys, each of size [keySize] returns inserted keys and values FillTrie reads from [rand] and the caller should call rand.Seed(n) for deterministic results.
GenerateTrie creates a trie with [numKeys] key-value pairs inside of [trieDB].

# Structs

AccountIterator wraps a [snapshot.AccountIterator] to conform to [ethdb.Iterator] accounts will be returned in consensus (FullRLP) format for compatibility with trie data.
StorageIterator wraps a [snapshot.StorageIterator] to conform to [ethdb.Iterator].