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

fix(consensus): Fix off-by-one error in notary bound #296

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

dist1ll
Copy link
Contributor

@dist1ll dist1ll commented Jul 1, 2024

An off-by-one error in the notary bound leads the notary to stall one height too early. ACCEPTABLE_NOTARIZATION_CUP_GAP is inclusive, so this MR changes the notary to correctly notarize heights that are ACCEPTABLE_NOTARIZATION_CUP_GAP above the next CUP height. This is now also consistent with the validator.

@github-actions github-actions bot added the fix label Jul 1, 2024
@sa-github-api sa-github-api changed the base branch from master to mirroring July 1, 2024 08:38
@dist1ll dist1ll marked this pull request as ready for review July 1, 2024 09:57
@dist1ll dist1ll requested a review from a team as a code owner July 1, 2024 09:57
@dist1ll dist1ll added this pull request to the merge queue Jul 1, 2024
Merged via the queue into mirroring with commit fc1f91f Jul 1, 2024
20 checks passed
gitlab-dfinity pushed a commit that referenced this pull request Jul 1, 2024
chore(github-sync): PR#296 / fix(consensus): Fix off-by-one error in notary bound

[GitHub PR 296](#296) (branch: alic/CON-fix-ob1) 

See merge request dfinity-lab/public/ic!20160
nmattia pushed a commit that referenced this pull request Jul 1, 2024
An off-by-one error in the notary bound leads the notary to stall one
height too early. `ACCEPTABLE_NOTARIZATION_CUP_GAP` is inclusive, so
this MR changes the notary to correctly notarize heights that are
`ACCEPTABLE_NOTARIZATION_CUP_GAP` above the next CUP height. This is now
also consistent with the validator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants