-
Notifications
You must be signed in to change notification settings - Fork 269
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
test: Delayed Prevote Prototype #1460
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5a90ec5
delays precommits
staheri14 86b556d
calculates delay based on 11s after start time
staheri14 7a727d7
minor replacement
staheri14 9ee8842
Merge branch 'v0.34.x-celestia' into sanaz/delayed-precommit
staheri14 710b5c9
increases timeout in the test to account for the delayed precommit
staheri14 064b55b
Merge branch 'v0.34.x-celestia' into sanaz/delayed-precommit
staheri14 691fd4e
increases the waittime based on the expected block time
staheri14 6b9cdf5
fixes the TestProvider
staheri14 b4c184b
increases waittime for TestApp_Tx
staheri14 6120f68
increases to block time
staheri14 8d67ff1
fixes failure in TestMempoolNoProgressUntilTxsAvailable
staheri14 c009f22
fixes TestHeaderEvents
staheri14 91a0bd5
adds a todo
staheri14 c1f8105
adds a todo
staheri14 ed4bd1c
adds todos and reminders
staheri14 2598052
adds a todo to fix TestBroadcastTx
staheri14 9d6925e
extends contex timeout to make the TestBroadcastTx pass
staheri14 d44bb3b
increases TimeoutBroadcastTxCommit
staheri14 35f921b
fixes TestNodeStartStop by taking the new block time into account
staheri14 39ace76
fixes TestReactorVotingPowerChange
staheri14 5ddeaf3
accounts for block time variance in TestApp_Tx
staheri14 7ca9f7c
clarifies comments about TimeoutBroadcastTxCommit
staheri14 65e5442
sets wait time higher for the sake of CIs
staheri14 8a90067
adjust waiting time if higher than 11s
staheri14 a7468f6
traces precommit time table
staheri14 8095e52
adds PRecommitTimeTable to the consensus tables
staheri14 de810b1
adds consensus prefix to the table name
staheri14 c544f8a
does not adjust wait time
staheri14 b73fb1a
adds a comment
staheri14 9b7daab
captures the time where a new proposal arrives
staheri14 35a0e3e
traces when a height starts by cs.StartTime or by the arrival of a ne…
staheri14 fd04b4f
traces the start time of each height
staheri14 c44cdc4
adds an alternative implementation
staheri14 b008c8e
implements delayed prevote
staheri14 bb0a5a0
Merge remote-tracking branch 'origin/v0.34.x-celestia' into sanaz/del…
staheri14 f48658d
adds some comments about the waiting time before prevotes
staheri14 f64fe43
traces prevote delays
staheri14 3a75988
traces the proposer
staheri14 ab97854
updates go version to 1.22.6
staheri14 41156de
Merge branch 'sanaz/bumps-to-go1.22.6' into sanaz/delayed-prevote
staheri14 4b39913
increases delay to 10 seconds
staheri14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/tendermint/tendermint | ||
|
||
go 1.22.5 | ||
go 1.22.6 | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you call
doPrevote
here?If you call
enterPrevote
here again, thedefer
in methodenterPrevote
will be called twice. Not catastrophic, but there'll be a few duplicated events that may confuse external observers (e.g., relayers)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sergio-mena for your comment, you are right, the duplicate events needs to be considered carefully which is not yet the case in the current prototype implementation. But, will certainly address this in the full version.