Skip to content

Compare against the round we held before verifying a replicated block - #485

Open
samliok wants to merge 1 commit into
mainfrom
fix/replicated-notarization-restarts-round
Open

Compare against the round we held before verifying a replicated block#485
samliok wants to merge 1 commit into
mainfrom
fix/replicated-notarization-restarts-round

Conversation

@samliok

@samliok samliok commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

createNotarizedBlockVerificationTask decided whether to start a new round by comparing e.round against md.Round, the round of the replicated block being verified. That asks whether we are ahead of an old block, which stays true for the whole catch up, rather than whether we just advanced. createFinalizedBlockVerificationTask already captures the round before processing and compares against that.

Restarting the round we are already in re-runs startRound, so a leader builds a second block for a round it has already proposed in. The test empty notarizes round 0, proposes as leader of round 1, then replicates the notarized block for round 0 and asserts round 1 is not built twice.

createNotarizedBlockVerificationTask decided whether to start a new round by comparing
e.round against the replicated block's round, which stays true for as long as we are
ahead of that block. Capture the round before processing instead, matching what
createFinalizedBlockVerificationTask already does.
@samliok
samliok marked this pull request as ready for review August 4, 2026 20:14
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.

1 participant