-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Update DefaultHistoricalEntries to 100 #6059
Conversation
x/staking/types/params.go
Outdated
@@ -28,7 +28,7 @@ const ( | |||
|
|||
// DefaultHistorical entries is 0 since it must only be non-zero for | |||
// IBC connected chains | |||
DefaultHistoricalEntries uint32 = 0 | |||
DefaultHistoricalEntries uint32 = 1000 |
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.
Any rationale behind this value?
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.
/cc @AdityaSripal
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 will govern how low-latency IBC handshakes must be in order to complete in time. I think 1000
is fine, it's probably even fine to use something much lower, like 100
.
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.
I see. Are historical entries persisted in state? If so, we should opt for a lower bound instead (nitpick).
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.
after block 100 the new ones start overriding the old ones so there are always at most 100
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.
ACK. Pending @cwgoes and @AdityaSripal's approval
Codecov Report
@@ Coverage Diff @@
## master #6059 +/- ##
=======================================
Coverage 54.64% 54.64%
=======================================
Files 426 426
Lines 25890 25890
=======================================
Hits 14148 14148
Misses 10763 10763
Partials 979 979 |
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.
ACK, although I think we don't even need to keep 1000
, at least as a default
x/staking/types/params.go
Outdated
@@ -28,7 +28,7 @@ const ( | |||
|
|||
// DefaultHistorical entries is 0 since it must only be non-zero for | |||
// IBC connected chains | |||
DefaultHistoricalEntries uint32 = 0 | |||
DefaultHistoricalEntries uint32 = 1000 |
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 will govern how low-latency IBC handshakes must be in order to complete in time. I think 1000
is fine, it's probably even fine to use something much lower, like 100
.
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.
ACK
* Update DefaultHistoricalEntries to 1000 * hist entries sims and comment on simapp * changelog and godoc * update sim param change * update default to 100 Co-authored-by: Federico Kunze <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Closes: #XXX
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)