Skip to content

Commit

Permalink
Log data if cannot decode BlockBodiesPacket66 (#4850)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored Jul 28, 2022
1 parent 167de52 commit 7ae9988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sentry/sentry/sentry_multi_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func (cs *MultiClient) newBlock66(ctx context.Context, inreq *proto_sentry.Inbou
func (cs *MultiClient) blockBodies66(inreq *proto_sentry.InboundMessage, _ direct.SentryClient) error {
var request eth.BlockRawBodiesPacket66
if err := rlp.DecodeBytes(inreq.Data, &request); err != nil {
return fmt.Errorf("decode BlockBodiesPacket66: %w", err)
return fmt.Errorf("decode BlockBodiesPacket66: %w, data: %x", err, inreq.Data)
}
txs, uncles := request.BlockRawBodiesPacket.Unpack()
cs.Bd.DeliverBodies(&txs, &uncles, uint64(len(inreq.Data)), ConvertH512ToPeerID(inreq.PeerId))
Expand Down

0 comments on commit 7ae9988

Please sign in to comment.