Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Oct 10, 2023
1 parent bd4fc2c commit 626bca6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eth/protocols/eth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ func handleGetBlockHeaders66(backend Backend, msg Decoder, peer *Peer) error {
// Decode the complex header query
var query GetBlockHeadersPacket66
if err := msg.Decode(&query); err != nil {
log.Info("***** Failed to decode GetBlockHeadersPacket66", "msg", msg, "err", err)
return fmt.Errorf("%w: message %v: %v", errDecode, msg, err)
}

response := ServiceGetBlockHeadersQuery(backend.Chain(), query.GetBlockHeadersPacket, peer)

return peer.ReplyBlockHeadersRLP(query.RequestId, response)
err := peer.ReplyBlockHeadersRLP(query.RequestId, response)
log.Info("***** Returning from handleGetBlockHeaders66", "err", err)
return err
}

// ServiceGetBlockHeadersQuery assembles the response to a header query. It is
Expand Down

0 comments on commit 626bca6

Please sign in to comment.