Versions in this module Expand all Collapse all v0 v0.13.8 Aug 6, 2024 Changes in this version + const DefaultBufferSize + var Defaults = &Config + var ReadOnly = &Config + type Config struct + CleanCacheSize int + DirtyCacheSize int + ReadOnly bool + StateHistory uint64 + type Database struct + func New(diskdb ethdb.Database, config *Config) *Database + func (db *Database) Close() error + func (db *Database) Commit(root common.Hash, report bool) error + func (db *Database) Disable() error + func (db *Database) Enable(root common.Hash) error + func (db *Database) Initialized(genesisRoot common.Hash) bool + func (db *Database) Journal(root common.Hash) error + func (db *Database) Reader(root common.Hash) (layer, error) + func (db *Database) Recover(root common.Hash, loader triestate.TrieLoader) error + func (db *Database) Recoverable(root common.Hash) bool + func (db *Database) Scheme() string + func (db *Database) SetBufferSize(size int) error + func (db *Database) Size() (diffs common.StorageSize, nodes common.StorageSize) + func (db *Database) Update(root common.Hash, parentRoot common.Hash, block uint64, ...) error