aboutsummaryrefslogtreecommitdiffstats
path: root/core/state
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-05-17 00:10:58 +0800
committerGitHub <noreply@github.com>2019-05-17 00:10:58 +0800
commitf5d89cdb72c1e82e9deb54754bef8dd20bf12591 (patch)
treeb6e2ee16b90cd494eaefec59fb4aaaac71cc6a96 /core/state
parent60386b3545659d99c7488e456c780606db101936 (diff)
parent9eba3a9fff2f47f5e094c36a7c905380b0ac8b1f (diff)
downloadgo-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.tar
go-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.tar.gz
go-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.tar.bz2
go-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.tar.lz
go-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.tar.xz
go-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.tar.zst
go-tangerine-f5d89cdb72c1e82e9deb54754bef8dd20bf12591.zip
Merge pull request #19244 from karalabe/freezer-2
cmd, core, eth, les, node: chain freezer on top of db rework
Diffstat (limited to 'core/state')
-rw-r--r--core/state/database.go2
-rw-r--r--core/state/sync.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/state/database.go b/core/state/database.go
index 8798b7380..ecc2c134d 100644
--- a/core/state/database.go
+++ b/core/state/database.go
@@ -93,7 +93,7 @@ type Trie interface {
// If the trie does not contain a value for key, the returned proof contains all
// nodes of the longest existing prefix of the key (at least the root), ending
// with the node that proves the absence of the key.
- Prove(key []byte, fromLevel uint, proofDb ethdb.Writer) error
+ Prove(key []byte, fromLevel uint, proofDb ethdb.KeyValueWriter) error
}
// NewDatabase creates a backing store for state. The returned database is safe for
diff --git a/core/state/sync.go b/core/state/sync.go
index e4a08d293..ef7930527 100644
--- a/core/state/sync.go
+++ b/core/state/sync.go
@@ -26,7 +26,7 @@ import (
)
// NewStateSync create a new state trie download scheduler.
-func NewStateSync(root common.Hash, database ethdb.Reader, bloom *trie.SyncBloom) *trie.Sync {
+func NewStateSync(root common.Hash, database ethdb.KeyValueReader, bloom *trie.SyncBloom) *trie.Sync {
var syncer *trie.Sync
callback := func(leaf []byte, parent common.Hash) error {
var obj Account