Present, not absent

This commit is contained in:
Christopher Goes 2018-05-29 08:32:39 +02:00
parent a5395f0619
commit 6712ea7f3a
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 3 additions and 3 deletions

View File

@ -40,11 +40,11 @@ func NewBeginBlocker(sk Keeper) sdk.BeginBlocker {
// Iterate over all the validators which *should* have signed this block
sk.stakeKeeper.IterateValidatorsBonded(ctx, func(_ int64, validator sdk.Validator) (stop bool) {
pubkey := validator.GetPubKey()
abs := false
present := true
if _, ok := absent[pubkey]; ok {
abs = true
present = false
}
sk.handleValidatorSignature(ctx, pubkey, abs)
sk.handleValidatorSignature(ctx, pubkey, present)
return false
})