aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-01-05 22:58:00 +0800
committerFelix Lange <fjl@twurst.com>2017-01-06 21:15:22 +0800
commitd3b751e4d94f95f6cc89544852f2d5811e075665 (patch)
tree14e3417894593f9922551dcb24c3a9d3383f69a2 /trie/trie.go
parent7731061903bb992f7630ab389863951efb360258 (diff)
downloadgo-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar
go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.gz
go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.bz2
go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.lz
go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.xz
go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.zst
go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.zip
trie: remove dependency on ethdb
This removes the core/types -> leveldb dependency.
Diffstat (limited to 'trie/trie.go')
-rw-r--r--trie/trie.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/trie/trie.go b/trie/trie.go
index 035a80e74..cd9e20cac 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -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)
}