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

Round Times: Period 0 deadline timeout #5850

Merged
merged 5 commits into from Dec 7, 2023

Conversation

gmalouf
Copy link
Contributor

@gmalouf gmalouf commented Dec 1, 2023

Summary

This PR introduces a consensus parameter AgreementDeadlineTimeoutPeriod0, that as the name implies is used for setting a common period 0 deadline timeout. References to the deadline timeout in the codebase have been updated to reflect whether they need the existing default or to resolve a timeout based on a current period of consensus (and the active consensus version).

Test Plan

Existing tests should all pass (several pass in period 0 or period 1 in agreement/service_test.go).

…o better reflect the variable's purpose. Fix deadline timeout references that either needed to provide period now or needed the default deadline timeout.
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (cf42837) 55.88% compared to head (4dd7d57) 55.92%.
Report is 6 commits behind head on master.

Files Patch % Lines
catchup/service.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5850      +/-   ##
==========================================
+ Coverage   55.88%   55.92%   +0.04%     
==========================================
  Files         477      477              
  Lines       67259    67272      +13     
==========================================
+ Hits        37586    37622      +36     
+ Misses      27127    27109      -18     
+ Partials     2546     2541       -5     

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

@gmalouf gmalouf marked this pull request as ready for review December 1, 2023 15:58
Copy link
Contributor

@jannotti jannotti left a comment

Choose a reason for hiding this comment

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

I'm not sure any real harm will come from my concern.

config/consensus.go Outdated Show resolved Hide resolved
agreement/types.go Outdated Show resolved Hide resolved
agreement/player.go Outdated Show resolved Hide resolved
gmalouf and others added 2 commits December 4, 2023 13:31
Co-authored-by: John Jannotti <jannotti@gmail.com>
agreement/actions.go Show resolved Hide resolved
agreement/types.go Outdated Show resolved Hide resolved
agreement/types.go Show resolved Hide resolved
agreement/player.go Outdated Show resolved Hide resolved
…er.go, applying the resolved timeout to both issueSoftVote and nextVoteRanges.
@gmalouf gmalouf self-assigned this Dec 7, 2023
@gmalouf gmalouf merged commit ebd3593 into algorand:master Dec 7, 2023
17 of 18 checks passed
@gmalouf gmalouf deleted the period0-deadline-timeout branch December 7, 2023 20:11
cce added a commit to cce/go-algorand that referenced this pull request Feb 29, 2024
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

5 participants