diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-03-26 18:34:21 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-03-26 19:08:01 +0800 |
commit | 495bdb0c713ce6deafa51fa25cb7ea66426b6b2e (patch) | |
tree | 648283a32470db5018d6efba60b5f7cb0a60f0ae /ethdb | |
parent | b6b6f52ec8608e1a694357357c3f1fde669f1e6d (diff) | |
download | dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.gz dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.bz2 dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.lz dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.xz dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.tar.zst dexon-495bdb0c713ce6deafa51fa25cb7ea66426b6b2e.zip |
cmd: export preimages in RLP, support GZIP, uniform with block export
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 4 |
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) } |