Versions in this module Expand all Collapse all v0 v0.13.8 Nov 15, 2024 Changes in this version + var HashDefaults = &Config + type Config struct + HashDB *hashdb.Config + IsVerkle bool + PathDB *pathdb.Config + Preimages bool + type Database struct + func NewDatabase(diskdb ethdb.Database, config *Config) *Database + func (db *Database) Cap(limit common.StorageSize) error + func (db *Database) Close() error + func (db *Database) Commit(root common.Hash, report bool) error + func (db *Database) Dereference(root common.Hash) 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) InsertPreimage(preimages map[common.Hash][]byte) + func (db *Database) IsVerkle() bool + func (db *Database) Journal(root common.Hash) error + func (db *Database) Preimage(hash common.Hash) []byte + func (db *Database) Reader(blockRoot common.Hash) (database.Reader, error) + func (db *Database) Recover(target common.Hash) error + func (db *Database) Recoverable(root common.Hash) (bool, error) + func (db *Database) Reference(root common.Hash, parent common.Hash) error + func (db *Database) Scheme() string + func (db *Database) SetBufferSize(size int) error + func (db *Database) Size() (common.StorageSize, common.StorageSize, common.StorageSize) + func (db *Database) Update(root common.Hash, parent common.Hash, block uint64, ...) error + func (db *Database) UpdateAndReferenceRoot(root common.Hash, parent common.Hash, block uint64, ...) error + func (db *Database) WritePreimages()