mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 19:46:39 +00:00
core/rawdb: fix readOnly mode for database (#33025)
This commit is contained in:
parent
19aa8020a9
commit
395425902d
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue