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: calculate the batches per sessions correctly to achieve fault tolerance #4188

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

joschisan
Copy link
Contributor

No description provided.

Copy link
Contributor

@dpc dpc left a comment

Choose a reason for hiding this comment

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

Probably @elsirion should review before merging, but might as well tick for the second reviewer.

@maan2003
Copy link
Member

you can validate it using https://github.com/Maan2003/fedimint/commits/consensus-test-old

./scripts/tests/consensus-fix.sh /path/to/old-fedimintd

@justinmoon
Copy link
Contributor

How are we going to test this change works as intended? I would like to see a test where a 3/4 federation with 1 guardian offline produces a session. #4198 may help with this.

Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

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

Looks equivalent to 051cb73, which made sense to me.

// indefinitely. Hence we increase the delay between rounds exponentially
// such that MAX_ROUND would only be reached after roughly 350 years.
// indefinitely. Hence, we increase the delay between rounds exponentially
// such that max_round would only be reached after a minimum of 100 years.
Copy link
Contributor

Choose a reason for hiding this comment

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

That is enforced by AlephBFT on startup, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@elsirion elsirion added this pull request to the merge queue Feb 1, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 1, 2024
fix: calculate the batches per sessions correctly to achieve fault tolerance
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b8ead74) 58.17% compared to head (c603e66) 57.90%.
Report is 21 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4188      +/-   ##
==========================================
- Coverage   58.17%   57.90%   -0.28%     
==========================================
  Files         192      197       +5     
  Lines       43225    43416     +191     
==========================================
- Hits        25145    25138       -7     
- Misses      18080    18278     +198     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 1, 2024
@elsirion
Copy link
Contributor

elsirion commented Feb 1, 2024

We really need to fix CI 😭

@elsirion elsirion added this pull request to the merge queue Feb 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 1, 2024
@justinmoon justinmoon mentioned this pull request Feb 1, 2024
17 tasks
@justinmoon justinmoon added this pull request to the merge queue Feb 1, 2024
@joschisan joschisan removed this pull request from the merge queue due to a manual request Feb 1, 2024
@joschisan joschisan added this pull request to the merge queue Feb 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 1, 2024
@joschisan joschisan added this pull request to the merge queue Feb 1, 2024
Merged via the queue into fedimint:master with commit 718bf5e Feb 1, 2024
23 of 24 checks passed
@joschisan joschisan deleted the session_switch branch February 1, 2024 18:28
@fedimint-backports
Copy link

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.

None yet

6 participants