Small encoding fixes on logs and http error code change (#13345)

* fixing some bad encodings

* changing http error to align with other clients

* fixing unit test
This commit is contained in:
james-prysm
2023-12-20 12:18:55 -06:00
committed by GitHub
parent c6801df05a
commit 856907d760
3 changed files with 6 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import (
"sync/atomic"
"time"
"github.com/ethereum/go-ethereum/common/hexutil"
emptypb "github.com/golang/protobuf/ptypes/empty"
"github.com/prysmaticlabs/prysm/v4/beacon-chain/core/altair"
"github.com/prysmaticlabs/prysm/v4/beacon-chain/core/signing"
@@ -147,7 +148,7 @@ func (v *validator) SubmitSignedContributionAndProof(ctx context.Context, slot p
if contribution.AggregationBits.Count() == 0 {
log.WithFields(logrus.Fields{
"slot": slot,
"pubkey": pubKey,
"pubkey": hexutil.Encode(pubKey[:]),
"subnet": subnet,
}).Warn("Sync contribution for validator has no bits set.")
continue