feat(new-protocol): send vote2 as soon as cert1#4307
Conversation
|
Claude finished @mrain's task in 3m 42s —— View job Code Review: feat(new-protocol): send vote2 as soon as cert1
SummaryThis PR decouples vote2 from block reconstruction, splitting
Additionally, the payload commitment verification that was in consensus is moved to the coordinator, which validates the reconstructed commitment against the proposal before emitting What looks good
Issues flagged (inline comments posted)
Overall this is a well-structured change that correctly decouples the latency-critical vote2 path from reconstruction. The main item to consider is the reconstruction-before-proposal race in the coordinator. |
…to cl/decouple_vid_recon
There was a problem hiding this comment.
Code Review
This pull request refactors the consensus mechanism to allow Vote2 to be sent immediately upon receiving a certificate and proposal, while deferring lock updates and decisions until the block is locally available. Review feedback identifies a safety risk in consensus.rs due to the removal of commitment checks between proposals and reconstructed blocks. Furthermore, a liveness issue was found in coordinator.rs where reconstructed blocks are dropped if the proposal is missing, which could stall the protocol in asynchronous environments.
Closes #<ISSUE_NUMBER>
This PR:
This PR does not:
Key places to review: