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!: versioned timeouts #3882
feat!: versioned timeouts #3882
Changes from 73 commits
8ef416b
0cd25d3
a878a20
20b62ef
14abdab
33b2f7f
dc127da
7efde46
3eca59d
861309f
789bc23
3158757
75a5016
539d4d6
c64caa3
a6d5c1d
81e7f9b
0dbe35c
1984704
be3bf26
76eb2fb
bc2e04c
07daa0b
8ac82fe
76fd45d
da8c5e4
31a7f36
6b2f58e
eb2dab5
345ecc0
cdef177
510fb4c
67e702b
d67a2fe
ebadbd8
c2a804f
759e650
ac4e88e
71fb648
f15e64e
6794d0f
a184376
6027fb3
05ebaa7
ba95e0b
ab41d7b
c1abf94
d9d5231
721910d
072d17d
0e20204
4ac2c73
0e3c631
cdba0b7
e160793
f10dd3b
2d818d6
2497800
7280b4f
1fddc7b
6c6f247
853abb7
910e2df
8fa70a3
b86606c
409d834
6bb63ba
104740d
e7d990b
fb2fdab
81d8415
75d7a9a
79595cd
aaa1b63
6610962
bcd9cae
b0f614c
be5d05a
cd066e6
e12ab20
b2b6baa
ae4fbc3
7a993f1
1be795a
4621a6b
3ea0ca5
e8affab
403aa1d
3762a2d
3ceae06
bdcf68e
955a658
3fc1c5a
558802c
4f220d3
0bfab8e
5a71dd7
8f57f47
c9ece2a
7845569
8a0c432
fc6a897
9e6f713
b9b1df8
8c019af
e13b96c
899ad7c
b9aca24
6c70dac
61a747b
07c1fc9
d969f68
528fa8c
9669f8c
7383fa0
bcf4223
fbbd9e6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Just FYI: If this is called the first time a node starts up. The version may be 0
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.
Should line 146 have this?
// time. The expected block time is 6 seconds, therefore this value is 30
Check failure on line 80 in app/test/timeouts_test.go
GitHub Actions / lint / golangci-lint
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.
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.
[To reviewers] This change (reduction of
DefaultUpgradeHeightDelay
to3
) isn't intended for merging in this PR. It's a temporary workaround to address this issue. I reduced the delay to ensure the e2e tests finish in a reasonable time—otherwise, we would have to wait for 50,400 blocks before the e2e upgrade tests complete.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.
We should revert this back to 7 days
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.
🛠️ Refactor suggestion
Temporary change needs clear documentation and safeguards
The
DefaultUpgradeHeightDelay
has been significantly reduced from 50,400 blocks to 3 blocks. While this change is intended to facilitate faster e2e testing, it poses several concerns:To address these issues, consider the following suggestions:
This approach ensures that the production value is used by default, reducing the risk of accidentally deploying the test value.
These changes will help prevent accidental merges of the test value to production and provide clear documentation for future developers.
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.
[To the reviewers] We may need further research to properly set these values.
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.
By default, we should use the timeouts from the 8MB 6s chain, so 4.2s timeout commit and 3.5s timeout propose. This gets us 5-7s blocks for a 0-8MB block
If we want closer to 6s second blocks we can adjust for testnets and max block size