Skip to content

Commit

Permalink
fix block rlp logging bug (erigontech#7441)
Browse files Browse the repository at this point in the history
fixes a logging statement was logging the outer rpc proto instead of the
inner rlp of the block as intended
  • Loading branch information
roberto-bayardo authored and calmbeing committed Jul 12, 2023
1 parent 2223f77 commit 9c3e1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/rpcservices/eth_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (back *RemoteBackend) PendingBlock(ctx context.Context) (*types.Block, erro
var block types.Block
err = rlp.Decode(bytes.NewReader(blockRlp.BlockRlp), &block)
if err != nil {
return nil, fmt.Errorf("decoding block from %x: %w", blockRlp, err)
return nil, fmt.Errorf("decoding block from %x: %w", blockRlp.BlockRlp, err)
}

return &block, nil
Expand Down

0 comments on commit 9c3e1ed

Please sign in to comment.