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

fix(consensus): strong termination for the binary agreement #765

Merged
merged 3 commits into from
Oct 21, 2023

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Oct 21, 2023

Description

This pull request (PR) implements strong termination for binary agreement.
Any validator who makes a decision in the MainVote step will broadcast the decide message.
Any validator who sees a proper and justified decide message can decide on the agreed-upon value and terminate immediately.

This is based on section 5.3.1 of the ABBA spec: "Achieving Stronger Termination"

@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

Merging #765 (62387c9) into main (1fc2f15) will increase coverage by 0.03%.
The diff coverage is 93.33%.

@@            Coverage Diff             @@
##             main     #765      +/-   ##
==========================================
+ Coverage   82.78%   82.82%   +0.03%     
==========================================
  Files         173      173              
  Lines        8058     8122      +64     
==========================================
+ Hits         6671     6727      +56     
- Misses       1065     1072       +7     
- Partials      322      323       +1     

@amirvalhalla amirvalhalla self-requested a review October 21, 2023 15:33
consensus/cp.go Outdated Show resolved Hide resolved
Copy link
Member

@amirvalhalla amirvalhalla left a comment

Choose a reason for hiding this comment

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

@b00f
please resolve request changes.

Copy link
Member

@amirvalhalla amirvalhalla left a comment

Choose a reason for hiding this comment

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

@b00f
thanks

@themantre themantre merged commit 34eff4f into pactus-project:main Oct 21, 2023
12 checks passed
@b00f b00f deleted the strong-termination branch January 11, 2024 11:20
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