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

grandpa: Ensure WarpProof stays in its limits #6963

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Dec 18, 2024

There was the chance that a WarpProof was bigger than the maximum warp sync proof size. This could have happened when inserting the last justification, which then may pushed the total proof size above the maximum. The solution is simply to ensure that the last justfication also fits into the limits.

Close: #6957

There was the chance that a `WarpProof` was bigger than the maximum warp sync proof size.
This could have happened when inserting the last justification, which then may pushed the
total proof size above the maximum. The solution is simply to ensure that the last justfication
also fits into the limits.
@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label Dec 18, 2024
@bkchr bkchr requested review from skunert and a team December 18, 2024 20:46
@bkchr
Copy link
Member Author

bkchr commented Dec 18, 2024

/cmd prdoc --audience node_dev --bump patch

@bkchr bkchr added this pull request to the merge queue Dec 20, 2024
Merged via the queue into master with commit d0c8a07 Dec 20, 2024
201 of 204 checks passed
@bkchr bkchr deleted the bkchr-grandpa-warp-proof-limits branch December 20, 2024 18:25
dudo50 pushed a commit to paraspell-research/polkadot-sdk that referenced this pull request Jan 4, 2025
There was the chance that a `WarpProof` was bigger than the maximum warp
sync proof size. This could have happened when inserting the last
justification, which then may pushed the total proof size above the
maximum. The solution is simply to ensure that the last justfication
also fits into the limits.

Close: paritytech#6957

---------

Co-authored-by: command-bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warp sync crash (final_outcome.encoded_size() <= MAX_WARP_SYNC_PROOF_SIZE)
3 participants