Skip to content

Round Times: Period 0 deadline timeout#5850

Merged
gmalouf merged 5 commits intoalgorand:masterfrom
gmalouf:period0-deadline-timeout
Dec 7, 2023
Merged

Round Times: Period 0 deadline timeout#5850
gmalouf merged 5 commits intoalgorand:masterfrom
gmalouf:period0-deadline-timeout

Conversation

@gmalouf
Copy link
Copy Markdown
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.
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread config/consensus.go Outdated
Comment thread agreement/types.go Outdated
Comment thread agreement/player.go Outdated
gmalouf and others added 2 commits December 4, 2023 13:31
Co-authored-by: John Jannotti <jannotti@gmail.com>
@gmalouf gmalouf requested a review from algorandskiy December 4, 2023 18:53
Comment thread agreement/actions.go
Comment thread agreement/types.go Outdated
Comment thread agreement/types.go
Comment thread agreement/player.go Outdated
…er.go, applying the resolved timeout to both issueSoftVote and nextVoteRanges.
@gmalouf gmalouf requested review from cce, jannotti and zeldovich December 6, 2023 20:31
@gmalouf gmalouf self-assigned this Dec 7, 2023
@gmalouf gmalouf merged commit ebd3593 into algorand:master Dec 7, 2023
@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.

5 participants