Versions in this module Expand all Collapse all v1 v1.9.14 Apr 27, 2020 v1.9.13 Apr 27, 2020 Changes in this version + var ErrNotCoveredYet = errors.New("not covered yet") + var ErrSnapshotStale = errors.New("snapshot stale") + func AccountRLP(nonce uint64, balance *big.Int, root common.Hash, codehash []byte) []byte + func GenerateTrieRoot(it AccountIterator) common.Hash + func SlimToFull(data []byte) ([]byte, error) + type Account struct + Balance *big.Int + CodeHash []byte + Nonce uint64 + Root []byte + type AccountIterator interface + Account func() []byte + Error func() error + Hash func() common.Hash + Next func() bool + Release func() + type Snapshot interface + Account func(hash common.Hash) (*Account, error) + AccountRLP func(hash common.Hash) ([]byte, error) + Root func() common.Hash + Storage func(accountHash, storageHash common.Hash) ([]byte, error) + type Tree struct + func New(diskdb ethdb.KeyValueStore, triedb *trie.Database, cache int, root common.Hash, ...) *Tree + func (t *Tree) AccountIterator(root common.Hash, seek common.Hash) (AccountIterator, error) + func (t *Tree) Cap(root common.Hash, layers int) error + func (t *Tree) Journal(root common.Hash) (common.Hash, error) + func (t *Tree) Rebuild(root common.Hash) + func (t *Tree) Snapshot(blockRoot common.Hash) Snapshot + func (t *Tree) Update(blockRoot common.Hash, parentRoot common.Hash, ...) error