Skip to content

Commit 3954259

Browse files
authored
core/rawdb: fix readOnly mode for database (#33025)
1 parent 19aa802 commit 3954259

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)