Unverified Commit e4e97a33 authored by Adam Tucker's avatar Adam Tucker Committed by GitHub
Browse files

min duration from days to hours, changed weekly to day (#859)

* min duration from 1d to 24h (d not recognized), changed weekly to day (weekly doesnt work, only week)

* changed from seconds to hours
parent b2de5607
Showing with 3 additions and 3 deletions
+3 -3
......@@ -75,7 +75,7 @@ func GetCmdCurrentEpoch() *cobra.Command {
fmt.Sprintf(`Query current epoch by specified identifier.
Example:
$ %s query epochs current-epoch weekly
$ %s query epochs current-epoch day
`,
version.AppName,
),
......
......@@ -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, "24h", "The duration token to be locked. e.g. 24h, 168h, 336h")
return fs
}
func FlagSetMinDuration() *flag.FlagSet {
fs := flag.NewFlagSet("", flag.ContinueOnError)
fs.String(FlagMinDuration, "1d", "The minimum duration of token bonded. e.g. 1d, 7d, 14d")
fs.String(FlagMinDuration, "336h", "The minimum duration of token bonded. e.g. 24h, 168h, 336h")
return fs
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment