cosmos-sdk/types
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
..
lib Ledger integration (#931) 2018-06-29 02:54:47 +02:00
abci.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
account.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
codespacer_test.go Error codespacing (#809) 2018-04-17 19:16:21 -07:00
codespacer.go Error codespacing (#809) 2018-04-17 19:16:21 -07:00
coin_test.go Merge PR #1218: sdk.Int in sdk.Coin 2018-06-15 23:16:45 +02:00
coin.go Merge PR #1424: tools: add unconvert linter 2018-06-28 18:08:29 +02:00
context_test.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
context.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
errors_test.go Error codespacing (#809) 2018-04-17 19:16:21 -07:00
errors.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
gas.go Merge PR #1358: Fix typos and gofmt files 2018-06-25 20:23:17 +02:00
handler.go finish docs for app1 2018-06-27 07:15:30 -04:00
int_test.go Merge PR #1218: sdk.Int in sdk.Coin 2018-06-15 23:16:45 +02:00
int.go Merge PR #1415: x/stake: Limit the size of rationals from user input 2018-06-29 22:30:12 +02:00
rational_test.go Merge PR #1415: x/stake: Limit the size of rationals from user input 2018-06-29 22:30:12 +02:00
rational.go Merge PR #1415: x/stake: Limit the size of rationals from user input 2018-06-29 22:30:12 +02:00
result.go Merge PR #1266: Multiple messages 2018-06-22 00:05:25 +02:00
stake.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
store_test.go added just FF byte 2018-04-10 01:32:04 +02:00
store.go Ledger integration (#931) 2018-06-29 02:54:47 +02:00
tags_test.go AppendTags a function of Tags 2018-05-10 17:37:12 +02:00
tags.go Merge PR #1119: Unbonding, Redelegation 2018-06-27 04:00:12 +02:00
tx_msg.go fixes from review 2018-06-28 19:06:37 -04:00
wire.go Merge PR #1085: Re-enable tx history in LCD 2018-06-11 22:09:29 +02:00