core, light, trie: remove DiskDB function from trie database (#25690)

This commit is contained in:
rjl493456442
2022-09-07 09:08:56 +02:00
committed by GitHub
parent d408cb6fba
commit 5ddedd2f83
7 changed files with 32 additions and 24 deletions
-5
View File
@@ -304,11 +304,6 @@ func NewDatabaseWithConfig(diskdb ethdb.KeyValueStore, config *Config) *Database
return db
}
// DiskDB retrieves the persistent storage backing the trie database.
func (db *Database) DiskDB() ethdb.KeyValueStore {
return db.diskdb
}
// insert inserts a simplified trie node into the memory database.
// All nodes inserted by this function will be reference tracked
// and in theory should only used for **trie nodes** insertion.