ethdb/pebble: fix NewBatchWithSize to set db (#27350)

This commit is contained in:
Martin Holst Swende 2023-05-25 09:31:05 +02:00 committed by devopsbo3
parent 6fa241497f
commit a968f04a4f

View file

@ -308,6 +308,7 @@ func (d *Database) NewBatch() ethdb.Batch {
func (d *Database) NewBatchWithSize(_ int) ethdb.Batch { func (d *Database) NewBatchWithSize(_ int) ethdb.Batch {
return &batch{ return &batch{
b: d.db.NewBatch(), b: d.db.NewBatch(),
db: d,
} }
} }