core/rawdb: set freezerdb.readOnly to prevent Freeze deadlock in read-only mode

This commit is contained in:
MozirDmitriy 2025-10-25 21:56:10 +03:00 committed by GitHub
parent cfa3b96103
commit 5a09dfa8d7
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,