aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-03-26 18:34:21 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-03-26 19:08:01 +0800
commit495bdb0c713ce6deafa51fa25cb7ea66426b6b2e (patch)
tree648283a32470db5018d6efba60b5f7cb0a60f0ae /ethdb
parentb6b6f52ec8608e1a694357357c3f1fde669f1e6d (diff)
downloadgo-tangerine-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.gz
go-tangerine-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.zst
go-tangerine-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.zip
cmd: export preimages in RLP, support GZIP, uniform with block export
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/database.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index d0256c56f..30ed37dc7 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -122,8 +122,8 @@ func (db *LDBDatabase) NewIterator() iterator.Iterator {
return db.db.NewIterator(nil, nil)
}
-// NewIteratorByPrefix returns a iterator to iterate over subset of database content with a particular prefix.
-func (db *LDBDatabase) NewIteratorByPrefix(prefix []byte) iterator.Iterator {
+// NewIteratorWithPrefix returns a iterator to iterate over subset of database content with a particular prefix.
+func (db *LDBDatabase) NewIteratorWithPrefix(prefix []byte) iterator.Iterator {
return db.db.NewIterator(util.BytesPrefix(prefix), nil)
}