Jae Kwon bc51fa93b6 Fix updateValidatorDistInfoFromPool (#3046)
Fixes regression introduced by #2984.
Continuiation of #3033 , which didn't fix the simulation issues.
(candidate) Complete solution for #3019, 9002 halt bug.

From #2984, it isn't sufficient to take the fee pool rewards of a validator. Since we don't track delegator accums (as we do with validator accums), and because onValidatorModified >updateValidatorDistInfoFromPool is also being called upon delegation updates (or at least I believe this is the reason), it is necessary to also withdraw self delegation.

TODO: I don't think self-delegation should be required to be modified here... consider using a delegation hook to do the self-delegation withdraw part instead, e.g. splitting the updateValidatorDistInfoFromPool function into two. It might not result in cleaner code, however. Think hard.
2018-12-08 07:18:04 -08:00
2018-11-20 11:03:11 +01:00
2018-11-27 00:14:22 -08:00
2018-11-27 00:14:22 -08:00
2018-01-17 20:00:54 -05:00
2018-10-22 17:56:31 -07:00
2018-01-29 12:38:50 +01:00
2018-07-03 06:13:31 +02:00
2018-12-07 03:19:49 -08:00
2018-12-07 03:19:49 -08:00
2018-12-01 09:54:59 -08:00
2018-01-27 17:40:11 -08:00

Cosmos SDK

banner

version CircleCI codecov Go Report Card license LoC API Reference riot.im

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.11+

Cosmos Hub Public Testnet

To run a full-node in the latest public testnet of the Hub, first install gaia, then follow the guide.

For status updates and genesis files, see the testnets repo.

Quick Start

To learn how the SDK works from a high-level perspective, go to the SDK Intro.

If you want to get started quickly and learn how to build on top of the SDK, please follow the SDK Application Tutorial. You can also fork the tutorial's repo to get started building your own Cosmos SDK application.

For more, please go to the Cosmos SDK Docs

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%