cosmos-sdk/x/distribution
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
..
client Standardize CLI Exports from Modules (#2840) 2018-11-19 09:02:34 -08:00
keeper Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00
simulation Fix updateValidatorDistInfoFromPool (#3046) 2018-12-08 07:18:04 -08:00
tags Merge PR #2943: Fix tag usage in handlers and EndBlocker 2018-11-29 15:34:57 +01:00
types Merge PR #3010: Add Missing genesis checks in Gaia 2018-12-07 01:22:24 +01:00
abci_app.go Merge PR #2527: Minting 2018-10-19 20:36:00 +02:00
alias.go Merge PR #3010: Add Missing genesis checks in Gaia 2018-12-07 01:22:24 +01:00
genesis.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
handler.go Merge PR #2943: Fix tag usage in handlers and EndBlocker 2018-11-29 15:34:57 +01:00