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
2018-06-29 02:54:47 +02:00
2018-06-29 02:54:47 +02:00
2018-06-05 09:25:27 -07:00
2018-06-29 02:54:47 +02:00
2018-06-29 02:54:47 +02:00
2018-06-29 02:54:47 +02:00
2018-01-17 20:00:54 -05:00
2018-06-22 02:19:14 +02:00
2018-01-29 12:38:50 +01:00
2018-02-13 08:55:44 -05:00
2018-06-29 02:54:47 +02:00
2018-06-29 02:54:47 +02:00
2018-01-27 17:40:11 -08:00

Cosmos SDK

banner

version API Reference riot.im license LoC Go Report Card

Branch Tests Coverage
develop CircleCI codecov
master CircleCI codecov

The Cosmos-SDK is a framework for building blockchain applications in Golang. It is being used to build Gaia, the first implementation of the Cosmos Hub,

WARNING: The SDK has mostly stabilized, but we are still making some breaking changes.

Note: Requires Go 1.10+

Gaia Testnet

For more information on connecting to the testnet, see cmd/gaia/testnets

For the latest status of the testnet, see the status file.

Install

See the install instructions

Quick Start

Disambiguation

This Cosmos-SDK project is not related to the React-Cosmos project (yet). Many thanks to Evan Coury and Ovidiu (@skidding) for this Github organization name. As per our agreement, this disambiguation notice will stay here.

S
Description
No description provided
Readme
288 MiB
2025-12-12 07:01:08 +00:00
Languages
Go 93.1%
C 5.5%
Java 0.3%
Sage 0.3%
Makefile 0.2%
Other 0.5%