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.
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
feat: retrieves timeout propose and timeout commit dynamically per height according to the app version #1494
feat: retrieves timeout propose and timeout commit dynamically per height according to the app version #1494
Changes from 89 commits
f231895
41a2cb0
1fc1edf
597f667
2397315
03fb213
a104580
30bc1c0
7b3618b
fa27abe
6e2fb78
a7d1e1b
0904cd5
0271370
47329db
8ef6666
6a92b18
782efa1
26dfedf
020efac
490189c
852d07f
f1568a6
00d8e1c
3b6cbb3
98feed8
9ecf2d1
063fafd
bbfbd59
77e31ca
b8b7b5a
d48a120
6d53ec3
4d79406
eddd24b
647cd29
ca5cbf6
bf59cd5
585d682
bd49c4c
2c24116
61ea40b
5dca0dc
bebd8d5
4831733
cfdd2c3
e3ae19c
1e08820
f8eaf2d
eff0bb2
9865ebe
6f88a30
3f8320f
d6ecfd4
d8815a3
377751e
598e9be
a34d103
f06eae6
3347fe7
fbe4f62
86bd130
8fe698f
5785b37
f7cda78
66f3f21
0ebf51c
ee9bda2
9f11257
aabf2c6
5e7abef
98e3e13
fc2fc76
30a663f
d7e21f4
d872374
1776442
6211697
122058b
f74d19b
0fd7f5e
10be8b1
363058a
85e92f3
5d399b5
081ecce
f12da04
12639d4
e772715
1ef98d0
23e3fb1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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.
Isn't
CommitTime.IsZero()
only for the first block i.e. whenstate.LastBlockHeight == 0
. Can you find a case where this is not true?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.
This was just to be extra sure, didn't see any harm to add an extra check here. If you think it is excessive, I can remove it.
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.
If you want to keep this can you compact this into a simpler
IsGenesis
method and then just have a single if statement to setcs.StartTime
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.
[nit] instead of code comments that distract from the functionality, we can move the comments into code. For example
with the addition of
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.
This comment wasn't addressed.
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.
[nit] same potential refactor as above