Skip to content

Commit

Permalink
server: always reply with get headers
Browse files Browse the repository at this point in the history
backport of decred/dcrd#1295
  • Loading branch information
cfromknecht authored and anchaj committed Sep 22, 2018
1 parent 75c40ab commit d3e489e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,6 @@ func (sp *serverPeer) OnGetHeaders(_ *peer.Peer, msg *wire.MsgGetHeaders) {
// This mirrors the behavior in the reference implementation.
chain := sp.server.chain
headers := chain.LocateHeaders(msg.BlockLocatorHashes, &msg.HashStop)
if len(headers) == 0 {
// Nothing to send.
return
}

// Send found headers to the requesting peer.
blockHeaders := make([]*wire.BlockHeader, len(headers))
Expand Down

0 comments on commit d3e489e

Please sign in to comment.