Staking InitGenesis fix II

This commit is contained in:
Christopher Goes 2018-05-29 08:56:53 +02:00
parent 74e8159c3f
commit 9dfaf1797c
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) {
for _, validator := range data.Validators {
// Staking assumes bonded validators are already stored, need to force update
validator.PoolShares.Status = sdk.Unbonded
k.setValidator(ctx, validator)
k.updateValidator(ctx, validator)
}
for _, bond := range data.Bonds {