core/rawdb: fix readOnly mode for database (#33025)
Some checks failed
/ Keeper Build (push) Has been cancelled
/ Linux Build (push) Has been cancelled
/ Linux Build (arm) (push) Has been cancelled
/ Windows Build (push) Has been cancelled
/ Docker Image (push) Has been cancelled

This commit is contained in:
MozirDmitriy 2025-11-04 15:09:57 +02:00 committed by GitHub
parent 19aa8020a9
commit 395425902d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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