Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max-reversible-blocks should only prevent block production #641

Closed
arhag opened this issue Aug 26, 2024 · 0 comments · Fixed by #652 or #656
Closed

max-reversible-blocks should only prevent block production #641

arhag opened this issue Aug 26, 2024 · 0 comments · Fixed by #652 or #656
Assignees
Labels
👍 lgtm OCI Work exclusive to OCI team

Comments

@arhag
Copy link
Member

arhag commented Aug 26, 2024

Nodeos should no longer shut down if the number of blocks in the fork database exceeds the configured max-reversible-blocks.

Instead, when producer plugin is about to produce a block, it should check to the block_header_state finality_core for the number of reversible blocks in that branch. If that exceeds max-reversible-blocks, then it should avoid producing the block (can just be speculating) and log a warning message.

@arhag arhag added this to the Spring v1.0.0-rc3 milestone Aug 26, 2024
@arhag arhag removed the triage label Aug 26, 2024
@heifner heifner self-assigned this Aug 27, 2024
@heifner heifner added the OCI Work exclusive to OCI team label Aug 27, 2024
heifner added a commit that referenced this issue Aug 27, 2024
heifner added a commit that referenced this issue Aug 27, 2024
@heifner heifner linked a pull request Aug 27, 2024 that will close this issue
heifner added a commit that referenced this issue Aug 27, 2024
…block-production

[1.0] Pause production when max-reversible-blocks reached
heifner added a commit that referenced this issue Aug 27, 2024
heifner added a commit that referenced this issue Aug 27, 2024
…block-production-main

[1.0 -> main] Pause production when max-reversible-blocks reached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 lgtm OCI Work exclusive to OCI team
Projects
Archived in project
4 participants
@heifner @arhag @enf-ci-bot and others