log BLS verification failure (#7196)

This commit is contained in:
Andrew Ashikhmin 2023-03-28 13:34:25 +02:00 committed by GitHub
parent 340cf1b3e3
commit b85d22b46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
@ -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