Skip to content

Commit

Permalink
Merge pull request #1233 from cfromknecht/zeroheaders
Browse files Browse the repository at this point in the history
server: always reply with get headers
  • Loading branch information
Roasbeef authored Aug 1, 2018
2 parents 9a2f952 + 90c2094 commit f5e261f
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 @@ -742,10 +742,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 f5e261f

Please sign in to comment.