Conversation
Codecov Report
@@ Coverage Diff @@
## master #5792 +/- ##
==========================================
+ Coverage 59.77% 59.91% +0.13%
==========================================
Files 262 262
Lines 23704 23704
==========================================
+ Hits 14170 14202 +32
+ Misses 8017 7993 -24
+ Partials 1517 1509 -8
|
|
I don't think the |
|
test (02) is non-deterministic due to some tests. I reran them, they may pass now. As for |
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
cmwaters
left a comment
There was a problem hiding this comment.
I would also remove the comments in config/config.go on lines 823 and 869 and add a note that the parameter is not used in proto/tendermint/types/params.proto#31 just to make sure there's no confusion. Other than that it LGTM
|
Nice. Also, whoever merges this - please make sure that the commit follows the style guide 🙏🏼 |
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
|
Comments have been addressed, thanks for waiting! |
|
Apologies didn't realize theres a commit style guide. Here is a candidate one: (don't want to force push to update it) |
erikgrinaker
left a comment
There was a problem hiding this comment.
LGTM. We could consider logging a warning if set != 1ms, but from what I can tell that'd have to be on every block, which seems excessive.
There was a problem hiding this comment.
Hey @ValarDragon, do you mind just making these changes (I feel we should make the deprecation aspect more explicit) and rebasing your branch so I can merge. Alternatively you can allow me to update your fork or if you're busy I can just copy this PR to a new one so that we can merge it.
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
|
I merged master in, and applied the suggested updates |
time_iota_ms is intended to ensure that an honest validator always generates timestamps with time increasing monotonically. For this purpose, it always suffices to have this parameter set to `1ms`. Allowing users to choose different numbers increases bug surface area. Thus the code now ignores the user provided time_iota_ms parameter (marking it as unused), and uses 1ms internally.
|
Will this PR be backported? |
To what version(s)? That would constitute as an API breaking change I believe. |
|
I believe the API stays the same. Working on spec updates/formatting and remembered this was done recently. I wanted to double-check if it would be backported since it was done in a non-breaking way. |
|
It's non breaking but I think it was discussed in slack that because it constitutes a change in expected behaviour one might consider it still to be breaking. IMO, I would backport to 0.34.2 |
|
Oh okay. I was gone the week this was merged. Makes sense! |
Description
This PR removes the usage of
time_iota_msas a user-provided parameter, as its goal is to ensure time monotonicity. It hardcodes it in the code as1ms, but still leaves the parameter available until the next breaking block version, so as to not break downstream users code.Cref #2920