Skip to content

Commit

Permalink
patched 5-9 Consensus Failure
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguyen22 committed May 9, 2020
1 parent a238f64 commit a72c389
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/nodes/keeper/valStaked.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ func (k Keeper) removeValidatorTokens(ctx sdk.Ctx, v types.Validator, tokensToRe
k.deleteValidatorFromStakingSet(ctx, v)
v = v.RemoveStakedTokens(tokensToRemove)
k.SetValidator(ctx, v)
k.SetStakedValidator(ctx, v)
if !v.Jailed {
k.SetStakedValidator(ctx, v)
}
return v
}

Expand Down

0 comments on commit a72c389

Please sign in to comment.