You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shilei-wang
changed the title
[p3] Incorrect accuracy display in the return of "gov query-params"
[p2] Incorrect accuracy display in the return of "gov query-params"
May 6, 2019
In non-json mode, output (slashing/min_signed_per_window) accuracy is incorrect
To Reproduce
json mode (correct):
iriscli gov query-params --trust-node --module=slashing -o=json --indent
{
"type": "irishub/slashing/Params",
"value": {
"max_evidence_age": "51840",
"signed_blocks_window": "10",
min_signed_per_window: 0.5000000000,
"double_sign_jail_duration": "172800000000000",
"downtime_jail_duration": "86400000000000",
"censorship_jail_duration": "172800000000000",
"slash_fraction_double_sign": "0.0100000000",
"slash_fraction_downtime": "0.0000000000",
"slash_fraction_censorship": "0.0000000000"
}
}
non-json mode (incorrect):
iriscli gov query-params --trust-node --module=slashing
Slashing Params:
Max Evidence Age: 51840
Signed Blocks Window: 10
Min Signed Per Window: 5000000000
DoubleSign Jail Duration: 48h0m0s
Downtime Jail Duration: 24h0m0s
Censorship Jail Duration: 48h0m0s
Slash Fraction DoubleSign: 0.0100000000
Slash Fraction Downtime: 0.0000000000
Slash Fraction Censorship: 0.0000000000
The text was updated successfully, but these errors were encountered: