From 6712ea7f3a14d78be83b59eb45c3316ef99314c4 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Tue, 29 May 2018 08:32:39 +0200 Subject: [PATCH] Present, not absent --- x/slashing/tick.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/slashing/tick.go b/x/slashing/tick.go index 0d200f593..812552274 100644 --- a/x/slashing/tick.go +++ b/x/slashing/tick.go @@ -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 })