Skip to content

Commit

Permalink
Serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sanchez committed Jan 16, 2025
1 parent e051a7a commit a60a12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/protocols/eth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func ServiceGetBTCBlocksQuery(chain *core.BlockChain, query GetBTCBlocksRequest)
if len(blockBytes) != 0 {
btcBlock := common.BytesToBitcoinBlock(blockBytes)
log.Info(fmt.Sprintf("Serialized BTC block bytes: %x", blockBytes[:]))
rlpBytes, err := rlp.EncodeToBytes(btcBlock)
rlpBytes, err := rlp.EncodeToBytes(&btcBlock)
log.Info(fmt.Sprintf("RLP-encoded BTC block bytes: %x", rlpBytes[:]))
if err != nil {
log.Error(fmt.Sprintf("error RLP-encoding BTC block %s", hash.String()), "err", err)
Expand Down

0 comments on commit a60a12e

Please sign in to comment.