Skip to content

Commit d9d079e

Browse files
committed
Enable validator registration signature check
1 parent 07ceb38 commit d9d079e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rolling-shutter/keyperimpl/gnosis/validatorsyncer.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package gnosis
22

33
import (
44
"context"
5-
"fmt"
65
"math"
76
"math/big"
87

@@ -194,13 +193,10 @@ func (v *ValidatorSyncer) filterEvents(
194193
evLog.Warn().Msg("ignoring registration message with undecodable signature")
195194
continue
196195
}
197-
fmt.Printf("signature original: %X\n", event.Signature)
198-
fmt.Printf("validator pubkey original: %s\n", validator.Data.Validator.PubkeyHex)
199196
validSignature := validatorregistry.VerifySignature(sig, pubkey, msg)
200197
if !validSignature {
201-
fmt.Printf("%X\n", event.Signature)
202198
evLog.Warn().Msg("ignoring registration message with invalid signature")
203-
// continue
199+
continue
204200
}
205201

206202
filteredEvents = append(filteredEvents, event)

0 commit comments

Comments
 (0)