cosmos-sdk/x/stake/client/cli
Dev Ojha 47e4682d9f Merge PR #1415: x/stake: Limit the size of rationals from user input
* x/stake: Limit the size of rationals from user input

This commit sets the maximum number of decimal points that can be
passed in from messages. This is enforced on the validate basic of
MsgBeginUnbonding and MsgBeginRedelegation. The cli has been
updated to truncate the user input to the specified precision. This
also updates types/rational to return big ints for Num() and Den().

Closes #887

* Switch NewFromDecimal to error instead of truncating
2018-06-29 22:30:12 +02:00
..
flags.go Merge PR #1119: Unbonding, Redelegation 2018-06-27 04:00:12 +02:00
query.go Merge PR #1119: Unbonding, Redelegation 2018-06-27 04:00:12 +02:00
tx.go Merge PR #1415: x/stake: Limit the size of rationals from user input 2018-06-29 22:30:12 +02:00