Files
cosmos-sdk/types
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-06-29 02:54:47 +02:00
2018-09-13 14:17:32 -04:00
2018-11-26 04:13:47 -08:00
2018-11-16 09:12:24 -08:00
2018-11-16 09:12:24 -08:00
2018-08-22 00:12:44 -07:00
2018-11-16 09:12:24 -08:00
2018-11-27 00:14:22 -08:00