aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/database.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-16 23:17:02 -0400
committerDeterminant <[email protected]>2020-09-16 23:17:02 -0400
commitc5615034cf0991b55ca626ff052d2bb02049f9e3 (patch)
treed7758eaadc1e6e4543441f2a8e0b30d8cac70026 /plugin/evm/database.go
parented839907e592ad25e6119e145e7e05ca78b00fcd (diff)
adjust DB APIv0.3.0-rc.1
Diffstat (limited to 'plugin/evm/database.go')
-rw-r--r--plugin/evm/database.go17
1 files changed, 12 insertions, 5 deletions
diff --git a/plugin/evm/database.go b/plugin/evm/database.go
index 38b21d0..81d1c1d 100644
--- a/plugin/evm/database.go
+++ b/plugin/evm/database.go
@@ -46,12 +46,19 @@ func (db Database) Sync() error { return errOpNotSupported }
// NewBatch implements ethdb.Database
func (db Database) NewBatch() ethdb.Batch { return Batch{db.Database.NewBatch()} }
-// NewIterator implements ethdb.Database
-func (db Database) NewIterator() ethdb.Iterator { return db.Database.NewIterator() }
+//// NewIterator implements ethdb.Database
+//func (db Database) NewIterator() ethdb.Iterator {
+// return db.Database.NewIterator()
+//}
+
+//// NewIteratorWithPrefix implements ethdb.Database
+//func (db Database) NewIteratorWithPrefix(prefix []byte) ethdb.Iterator {
+// return db.NewIteratorWithPrefix(prefix)
+//}
-// NewIteratorWithPrefix implements ethdb.Database
-func (db Database) NewIteratorWithPrefix(prefix []byte) ethdb.Iterator {
- return db.NewIteratorWithPrefix(prefix)
+// NewIterator implements ethdb.Database
+func (db Database) NewIterator(prefix []byte, start []byte) ethdb.Iterator {
+ return db.NewIteratorWithStartAndPrefix(start, prefix)
}
// NewIteratorWithStart implements ethdb.Database