Skip to content

Commit

Permalink
fix oracle EndBlocker slashing check bug (trying to slash non-validator)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun committed Sep 4, 2019
1 parent 9e1e284 commit c6f4f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/oracle/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit c6f4f8b

Please sign in to comment.