Skip to content

fix: HA deadlock for last block edge case#21690

Merged
spypsy merged 1 commit intomerge-train/spartanfrom
spy/fix-ha-last-block
Mar 17, 2026
Merged

fix: HA deadlock for last block edge case#21690
spypsy merged 1 commit intomerge-train/spartanfrom
spy/fix-ha-last-block

Conversation

@spypsy
Copy link
Member

@spypsy spypsy commented Mar 17, 2026

change ordering for lastBlock case when creating a checkpoint proposal, so that we first sign the last block and then the checkpoint

@spypsy spypsy marked this pull request as ready for review March 17, 2026 16:24

if (!lastBlockInfo) {
return new CheckpointProposal(checkpointHeader, archiveRoot, feeAssetPriceModifier, checkpointSignature);
let checkpointSignature: Signature;
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah we don't really need this variable here since inside the if we just early return. I'd move this to after the if statement and turn it into a const.

Copy link
Member Author

Choose a reason for hiding this comment

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

done 👍

@spypsy spypsy force-pushed the spy/fix-ha-last-block branch from caabe39 to 1eb8594 Compare March 17, 2026 16:37
@spypsy spypsy enabled auto-merge (squash) March 17, 2026 16:38
@spypsy spypsy merged commit f503d61 into merge-train/spartan Mar 17, 2026
11 checks passed
@spypsy spypsy deleted the spy/fix-ha-last-block branch March 17, 2026 16:55
AztecBot pushed a commit that referenced this pull request Mar 17, 2026
change ordering for `lastBlock` case when creating a checkpoint
proposal, so that we first sign the last block and then the checkpoint
@AztecBot
Copy link
Collaborator

✅ Successfully backported to backport-to-v4-staging #21694.

ludamad pushed a commit that referenced this pull request Mar 17, 2026
change ordering for `lastBlock` case when creating a checkpoint
proposal, so that we first sign the last block and then the checkpoint
ludamad added a commit that referenced this pull request Mar 17, 2026
BEGIN_COMMIT_OVERRIDE
fix: HA deadlock for last block edge case (#21690)
fix: process all contract classes in storeBroadcastedIndividualFunctions
(A-683) (#21686)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants