Versions in this module Expand all Collapse all v1 v1.9.0 Dec 1, 2023 Changes in this version + var Defaults = &Config + func ParallelWorker(total, nThds int, worker func(start, end, idx int, args ...interface{}), ...) + type ChildResolver interface + ForEach func(node []byte, onChild func(common.Hash)) + type Config struct + CleanCacheSize int + type Database struct + func New(diskdb interface{}, _ interface{}, resolver ChildResolver) *Database + func (this *Database) Cap(limit common.StorageSize) error + func (this *Database) Close() error + func (this *Database) Commit(hash common.Hash, report bool) error + func (this *Database) Dereference(root common.Hash) + func (this *Database) Find(node common.Hash) (*database, []byte, error) + func (this *Database) Initialized(genesisRoot common.Hash) bool + func (this *Database) Node(hash common.Hash) ([]byte, error) + func (this *Database) Reader(blockRoot common.Hash) *paraReader + func (this *Database) Reference(root common.Hash, parent common.Hash) + func (this *Database) Scheme() string + func (this *Database) Size() common.StorageSize + func (this *Database) Update(root common.Hash, parent common.Hash, nodes *trienode.MergedNodeSet) error