From 90c2094cbd94284929dfd1fde04502e0cdc4d65a Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 31 Jul 2018 21:15:02 -0700 Subject: [PATCH] server: always reply with get headers backport of https://github.com/decred/dcrd/pull/1295 --- server.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server.go b/server.go index e41f27e5..65d77087 100644 --- a/server.go +++ b/server.go @@ -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))