Versions in this module Expand all Collapse all v0 v0.5.3 Dec 13, 2023 Changes in this version + type ChildResolver interface + ForEach func(node []byte, onChild func(common.Hash)) + type Database struct + func New(diskdb ethdb.Database, cleans cache, resolver ChildResolver) *Database + func (db *Database) Cap(limit common.StorageSize) error + func (db *Database) Close() error + func (db *Database) Commit(node common.Hash, report bool) error + func (db *Database) Dereference(root common.Hash) + func (db *Database) Initialized(genesisRoot common.Hash) bool + func (db *Database) Node(hash common.Hash) ([]byte, error) + func (db *Database) Nodes() []common.Hash + func (db *Database) Reader(root common.Hash) *reader + func (db *Database) Reference(child common.Hash, parent common.Hash) + func (db *Database) Scheme() string + func (db *Database) Size() common.StorageSize + func (db *Database) Update(root common.Hash, parent common.Hash, nodes *trienode.MergedNodeSet) error + func (db *Database) UpdateAndReferenceRoot(root common.Hash, parent common.Hash, nodes *trienode.MergedNodeSet) error