cosmos-sdk/x/stake
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
..
client Merge PR #1415: x/stake: Limit the size of rationals from user input 2018-06-29 22:30:12 +02:00
keeper Ledger integration (#931) 2018-06-29 02:54:47 +02:00
tags Merge PR #1119: Unbonding, Redelegation 2018-06-27 04:00:12 +02:00
types Merge PR #1415: x/stake: Limit the size of rationals from user input 2018-06-29 22:30:12 +02:00
app_test.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
genesis.go Merge PR #1119: Unbonding, Redelegation 2018-06-27 04:00:12 +02:00
handler.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
handler_test.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
stake.go Merge PR #1119: Unbonding, Redelegation 2018-06-27 04:00:12 +02:00