Skip to content

Conversation

@MozirDmitriy
Copy link
Contributor

  • Assign readOnly: opts.ReadOnly in Open() when constructing freezerdb
  • Without this, calling freezerdb.Freeze() in read-only mode attempts to send on chainFreezer.trigger while the freezer loop isn’t running, causing a permanent block.
  • The change enforces the intended behavior where Freeze() returns errReadOnly under read-only operation, avoiding deadlock and aligning with the function’s guard.

@rjl493456442 rjl493456442 self-assigned this Oct 28, 2025
@rjl493456442 rjl493456442 changed the title core/rawdb: set freezerdb.readOnly to prevent Freeze deadlock in read-only mode core/rawdb: fix readOnly mode for database Nov 4, 2025
@rjl493456442 rjl493456442 added this to the 1.16.8 milestone Nov 4, 2025
@rjl493456442 rjl493456442 merged commit 3954259 into ethereum:master Nov 4, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants