cosmos-sdk/x
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
..
auth Merge PR #3005: Move auth keeper benchmarks to sep. file 2018-12-06 10:49:30 +01:00
bank Merge PR #2977: Don't serialize Account Number and Sequence Number in signatures 2018-12-03 18:29:50 +01:00
distribution Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00
gov Merge PR #3010: Add Missing genesis checks in Gaia 2018-12-07 01:22:24 +01:00
ibc Merge PR #2896: Fixed account sequence issue in IBC relay 2018-11-27 18:22:43 +01:00
mint Inflation bug fixes (#2982) 2018-12-04 10:17:02 -08:00
mock Merge PR #2977: Don't serialize Account Number and Sequence Number in signatures 2018-12-03 18:29:50 +01:00
params add tests and restriction for TypeTable 2018-10-16 03:02:48 +09:00
slashing Merge PR #3010: Add Missing genesis checks in Gaia 2018-12-07 01:22:24 +01:00
stake Merge PR #3033: Fix negative stake & invariance bug 2018-12-08 01:04:52 +01:00