-
Notifications
You must be signed in to change notification settings - Fork 607
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
min duration from days to hours, changed weekly to day #859
Conversation
… (weekly doesnt work its week)
Codecov Report
@@ Coverage Diff @@
## main #859 +/- ##
=======================================
Coverage 19.86% 19.86%
=======================================
Files 190 190
Lines 24763 24763
=======================================
Hits 4918 4918
Misses 18982 18982
Partials 863 863
Continue to review full report at Codecov.
|
x/lockup/client/cli/flags.go
Outdated
@@ -14,13 +14,13 @@ const ( | |||
func FlagSetLockTokens() *flag.FlagSet { | |||
fs := flag.NewFlagSet("", flag.ContinueOnError) | |||
|
|||
fs.String(FlagDuration, "86400s", "The duration token to be locked. e.g. 1h, 1m, 1s, 0.1s") | |||
fs.String(FlagDuration, "86400s", "The duration token to be locked. e.g. 86400s, 604800s, 1209600s") |
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.
Can we put these in hours? I believe thats the largest default unit supported by golang
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.
TY, LGTM! Can we change the units to hours, since its easier to understand than seconds?
* min duration from 1d to 24h (d not recognized), changed weekly to day (weekly doesnt work, only week) * changed from seconds to hours (cherry picked from commit e4e97a3)
* min duration from 1d to 24h (d not recognized), changed weekly to day (weekly doesnt work, only week) * changed from seconds to hours (cherry picked from commit e4e97a3) Co-authored-by: Adam Tucker <[email protected]>
Fixes two queries
osmosisd query lockup total-locked-of-denom gamm/pool/1
Wont work since it tries to use
1d
as default min duration. Changed default to 86400s.osmosisd query epochs current-epoch -h
Shows weekly as a potential input but its week not weekly. While I was at it I just changed default to day since it is most used.
For contributor use:
docs/
) or specification (x/<module>/spec/
)Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorer