Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions yoda/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package yoda

import (
"encoding/hex"
"slices"
"strconv"

abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -62,13 +63,7 @@ func handleRequest(c *Context, l *Logger, id types.RequestID) {
return
}

hasMe := false
for _, val := range req.RequestedValidators {
if val == c.validator.String() {
hasMe = true
break
}
}
hasMe := slices.Contains(req.RequestedValidators, c.validator.String())
if !hasMe {
l.Debug(":next_track_button: Skip request not related to this validator")
return
Expand Down
Loading