aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/database.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/evm/database.go')
-rw-r--r--plugin/evm/database.go19
1 files changed, 13 insertions, 6 deletions
diff --git a/plugin/evm/database.go b/plugin/evm/database.go
index aedbc9b..81d1c1d 100644
--- a/plugin/evm/database.go
+++ b/plugin/evm/database.go
@@ -6,7 +6,7 @@ package evm
import (
"errors"
- "github.com/ava-labs/go-ethereum/ethdb"
+ "github.com/ethereum/go-ethereum/ethdb"
"github.com/ava-labs/avalanchego/database"
)
@@ -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