Skip to content

Commit a4b9acd

Browse files
MozirDmitriyprestoalvarez
authored andcommitted
core/rawdb: fix readOnly mode for database (ethereum#33025)
1 parent 4507767 commit a4b9acd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/rawdb/database.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ func Open(db ethdb.KeyValueStore, opts OpenOptions) (ethdb.Database, error) {
330330
}()
331331
}
332332
return &freezerdb{
333+
readOnly: opts.ReadOnly,
333334
ancientRoot: opts.Ancient,
334335
KeyValueStore: db,
335336
chainFreezer: frdb,

0 commit comments

Comments
 (0)