Repository navigation
fix(consensus): apply late commits for completed blocks - #1441
Conversation
Validate and apply retained blocks when commit confirmation arrives after conflicting proposal metadata has been dropped, including during propose. Cover arrival order, round differences and invalid commit rejection. Co-Authored-By: Codex GPT-6 <[email protected]> <sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🕓 Queued for automated review — 68th in line, estimated start in ~94 h (commit 1f8adce)
|
Keep immediate validation for matching retained parts and preserve download selection for an authenticated different block. Cover current and earlier rounds, propose-step arrival, and invalid signatures. Co-Authored-By: Codex <[email protected]>
A node now applies a confirmed block it has already downloaded when confirmation arrives after it discarded conflicting proposal metadata.
User story
As a node operator, I want my node to continue processing confirmed blocks regardless of whether confirmation arrives before or after the block.
Scenario
A node downloads a block, discards a proposal whose metadata disagrees with it, then receives valid confirmation. It currently stores that confirmation and waits for another block-completion event, even though the block is complete. It should validate and apply the available block immediately.
Detailed discussion
Issue being fixed or feature implemented
The release review of
1.7.1-dev.1identified this recovery gap in the retained-block/dropped-proposal state exercised by #1439 (merged intov1.7-devthrough #1437). Reproduction covers commits from the current and an earlier round, including arrival during the propose step. This is a local recovery defect; an unconditional network-wide halt has not been demonstrated.What was done?
How Has This Been Tested?
go test -mod=readonly -count=1 -timeout=5m -race -p 1 ./internal/consensus/....run --timeout 10m --new-from-rev=origin/v1.7-dev ./internal/consensus/...(0 issues).git diff --check.Breaking Changes
None. No wire-format or public API changes.
Checklist:
For repository code-owners and collaborators only
🤖 Co-authored by Claudius the Magnificent AI Agent