From c6f4f8b22285799c688244e4085fb9d880ef1b5b Mon Sep 17 00:00:00 2001 From: Yun Date: Wed, 4 Sep 2019 15:22:05 +0900 Subject: [PATCH] fix oracle EndBlocker slashing check bug (trying to slash non-validator) --- x/oracle/abci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/abci.go b/x/oracle/abci.go index 13874345b..f3f68071b 100644 --- a/x/oracle/abci.go +++ b/x/oracle/abci.go @@ -45,7 +45,7 @@ func EndBlocker(ctx sdk.Context, k Keeper) { for _, loser := range ballotLosers { key := loser.String() - if _, exists := ballotAttendees[key]; !exists { + if _, exists := ballotAttendees[key]; exists { ballotAttendees[key] = false // invalid vote } }