Skip to content

Commit

Permalink
Fix fake_leveldb
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Mar 29, 2022
1 parent 9d7391f commit 7ca5cda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ethdb/leveldb/fake_leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,21 @@ func (db *Database) NewBatch() ethdb.Batch {
panic("Method called on unconstructable leveldb database")
}

func (db *Database) NewBatchWithSize(size int) ethdb.Batch {
panic("Method called on unconstructable leveldb database")
}

// NewIterator creates a binary-alphabetical iterator over a subset
// of database content with a particular key prefix, starting at a particular
// initial key (or after, if it does not exist).
func (db *Database) NewIterator(prefix []byte, start []byte) ethdb.Iterator {
panic("Method called on unconstructable leveldb database")
}

func (db *Database) NewSnapshot() (ethdb.Snapshot, error) {
panic("Method called on unconstructable leveldb database")
}

// Stat returns a particular internal stat of the database.
func (db *Database) Stat(property string) (string, error) {
panic("Method called on unconstructable leveldb database")
Expand Down

0 comments on commit 7ca5cda

Please sign in to comment.