Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consensus: request ValidationResult in Emergency Mode #2475

Merged
merged 61 commits into from
Oct 30, 2024
Merged

Conversation

herr-seppia
Copy link
Member

@herr-seppia herr-seppia commented Sep 25, 2024

Implements #2483
[First part implemented in #2447]

  • Add the ValidationQuorum message, which contains a ValidationResult

  • Add InvType::ValidationResult and InvParam::Iteration

  • Request ValidationResult via GetResource if Validation times-out in Emergency Mode

  • Handle GetResource requesting a ValidationResult

  • Refactor past-message handling

  • Refactor candidate request by replacing InvParam::IterationAndHash with InvParam::Iteration

  • Rename Candidate trait to ConsensusStorage

  • Add ValidationResults functions to ConsensusStorage trait

  • Store ValidationResults in Validation handler, both from reaching quorum with Validation vote and from receiving ValidationQuorum msg from a peer

Base automatically changed from open-consensus to master September 25, 2024 12:42
@fed-franz fed-franz force-pushed the ratifi-result branch 2 times, most recently from 955c87e to 5d0c640 Compare October 16, 2024 16:10
@fed-franz fed-franz changed the title consensus: add ValidationQuorum message consensus: request ValidationResult in Emergency Mode Oct 17, 2024
@fed-franz fed-franz marked this pull request as ready for review October 17, 2024 12:49
@fed-franz fed-franz force-pushed the ratifi-result branch 4 times, most recently from b2235de to de12730 Compare October 24, 2024 13:58
consensus/src/execution_ctx.rs Show resolved Hide resolved
consensus/src/iteration_ctx.rs Outdated Show resolved Hide resolved
consensus/src/iteration_ctx.rs Outdated Show resolved Hide resolved
consensus/src/iteration_ctx.rs Outdated Show resolved Hide resolved
consensus/src/msg_handler.rs Outdated Show resolved Hide resolved
Copy link
Member

@autholykos autholykos left a comment

Choose a reason for hiding this comment

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

LGTM

@fed-franz fed-franz merged commit 1d19bf3 into master Oct 30, 2024
11 checks passed
@fed-franz fed-franz deleted the ratifi-result branch October 30, 2024 16:22
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.

3 participants