Skip to content

Commit

Permalink
log BLS verification failure (#7196)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored Mar 28, 2023
1 parent 340cf1b commit b85d22b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/erigon-cl/core/transition/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"fmt"

"github.com/Giulio2002/bls"
"github.com/ledgerwatch/log/v3"

"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes"
"github.com/ledgerwatch/erigon/cl/fork"
Expand Down Expand Up @@ -196,6 +198,7 @@ func ProcessDeposit(state *state.BeaconState, deposit *cltypes.Deposit, fullVali
valid, err := bls.Verify(deposit.Data.Signature[:], signedRoot[:], publicKey[:])
// Literally you can input it trash.
if !valid || err != nil {
log.Debug("Validator BLS verification failed", "valid", valid, "err", err)
return nil
}
// Append validator
Expand Down

0 comments on commit b85d22b

Please sign in to comment.