Skip to content

Commit

Permalink
Rework serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sanchez committed Jan 15, 2025
1 parent a966801 commit c435505
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 @@ -403,7 +403,7 @@ func handleBTCBlocks(backend Backend, msg Decoder, peer *Peer) error {

for i, blockRlp := range res.BTCBlocksResponse {
var btcBlockBytes common.BitcoinBlock
err := rlp.DecodeBytes(blockRlp, btcBlockBytes)
err := rlp.DecodeBytes(blockRlp, &btcBlockBytes)
if err != nil {
log.Error("Unable to RLP-decode BTC block", "badIndex", i, "err", err)
continue
Expand Down

0 comments on commit c435505

Please sign in to comment.