From c7a6645ebe5a4d3f46d8e42cfdf8182e25fcc41c Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 10 Jul 2014 21:41:33 -0500 Subject: [PATCH] Correct pushGetMerkleBlock throttling. This commit corrects the check which sends in the done channel when pushing merkle blocks that have no transactions to go with them. --- peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer.go b/peer.go index 5f567fe15..dee954a5e 100644 --- a/peer.go +++ b/peer.go @@ -555,7 +555,7 @@ func (p *peer) pushMerkleBlockMsg(sha *btcwire.ShaHash, doneChan, waitChan chan // Send the merkleblock. Only send the done channel with this message // if no transactions will be sent afterwards. var dc chan bool - if finalValidTxIndex > -1 { + if finalValidTxIndex == -1 { dc = doneChan } p.QueueMessage(merkle, dc)