diff --git a/ethdb/pebble/pebble.go b/ethdb/pebble/pebble.go index e538084777..b43529eddb 100644 --- a/ethdb/pebble/pebble.go +++ b/ethdb/pebble/pebble.go @@ -307,7 +307,8 @@ func (d *Database) NewBatch() ethdb.Batch { // batch object without any pre-allocated space. func (d *Database) NewBatchWithSize(_ int) ethdb.Batch { return &batch{ - b: d.db.NewBatch(), + b: d.db.NewBatch(), + db: d, } }