core/rawdb: fix readOnly mode for database (#33025)

This commit is contained in:
MozirDmitriy 2025-11-04 15:09:57 +02:00 committed by Alvarez
parent 45077677dd
commit a4b9acd375

View file

@ -330,6 +330,7 @@ func Open(db ethdb.KeyValueStore, opts OpenOptions) (ethdb.Database, error) {
}() }()
} }
return &freezerdb{ return &freezerdb{
readOnly: opts.ReadOnly,
ancientRoot: opts.Ancient, ancientRoot: opts.Ancient,
KeyValueStore: db, KeyValueStore: db,
chainFreezer: frdb, chainFreezer: frdb,