Skip to content

Make node start the round after replication notarization - #471

Merged
yacovm merged 2 commits into
mainfrom
replicateNotarizationStartRound
Jul 28, 2026
Merged

Make node start the round after replication notarization#471
yacovm merged 2 commits into
mainfrom
replicateNotarizationStartRound

Conversation

@yacovm

@yacovm yacovm commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Currently, if a node replicates a notarization it will advance to the next round, but will not start it.

This commit makes sure it starts the round in case it has advanced past the replicated seqs/rounds, just as we do for finalizations.

Added a unit test for both notarization and finalization, that a node proposes a block if it's the leader of the round that is after the round it replicated.

Currently, if a node replicates a notarization it will advance to the next round,
but will not start it.

This commit makes sure it starts the round in case it has advanced past the replicated seqs/rounds,
just as we do for finalizations.

Added a unit test for both notarization and finalization, that a node proposes a block if it's the leader of the round
that is after the round it replicated.

Signed-off-by: Yacov Manevich <yacov.manevich@avalabs.org>
}

func TestLeaderStartsRoundAfterReplicatedQuorumRound(t *testing.T) {
// This test makes sure that a node that replicates a notarization or a finalization,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is it not standard to add these comments above the function

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No! That's Claude's standard, not ours!

@yacovm
yacovm merged commit a36e1de into main Jul 28, 2026
6 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