mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
trie: remove dependency on ethdb
This removes the core/types -> leveldb dependency.
This commit is contained in:
@@ -60,8 +60,12 @@ func init() {
|
||||
|
||||
// Database must be implemented by backing stores for the trie.
|
||||
type Database interface {
|
||||
DatabaseReader
|
||||
DatabaseWriter
|
||||
// Get returns the value for key from the database.
|
||||
}
|
||||
|
||||
// DatabaseReader wraps the Get method of a backing store for the trie.
|
||||
type DatabaseReader interface {
|
||||
Get(key []byte) (value []byte, err error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user