cosmos-sdk/cmd/gaia
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
..
app Merge PR #3033: Fix negative stake & invariance bug 2018-12-08 01:04:52 +01:00
cli_test Merge PR #2995: Fully verify the signature in gaiacli tx sign 2018-12-06 02:02:04 -05:00
cmd Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00
init Merge PR #3010: Add Missing genesis checks in Gaia 2018-12-07 01:22:24 +01:00
testnets Merge PR #2337: Update revoked -> jailed in the docs, and in minor places within cmd 2018-09-15 02:52:23 +08:00