cosmos-sdk/x/distribution/keeper
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
..
allocation.go Jae/simulator improvements (#2900) 2018-11-27 00:14:22 -08:00
allocation_test.go Merge PR #2599 from cosmos/jae/dist_refactor 2018-10-26 13:27:55 +02:00
delegation.go Merge PR #2984: Removal of Mandatory Self-Delegation Reward 2018-12-04 17:53:52 -05:00
delegation_test.go LastValidatorPower is also an Int 2018-10-24 00:04:06 -07:00
genesis.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
hooks.go Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00
keeper.go Update to TM v0.26.0 - Part I (#2679) 2018-11-04 18:28:38 -08:00
keeper_test.go Replicate Rigel's changes but w/ modifications as discussed + some name changes 2018-10-22 01:46:47 -07:00
key.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
test_common.go Fix merge conflict issues from previous squash commit 2018-11-26 04:27:23 -08:00
validator.go Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00
validator_test.go Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00