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.
This commit is contained in:
parent
06d2707744
commit
c7a6645ebe
1 changed files with 1 additions and 1 deletions
2
peer.go
2
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
|
// Send the merkleblock. Only send the done channel with this message
|
||||||
// if no transactions will be sent afterwards.
|
// if no transactions will be sent afterwards.
|
||||||
var dc chan bool
|
var dc chan bool
|
||||||
if finalValidTxIndex > -1 {
|
if finalValidTxIndex == -1 {
|
||||||
dc = doneChan
|
dc = doneChan
|
||||||
}
|
}
|
||||||
p.QueueMessage(merkle, dc)
|
p.QueueMessage(merkle, dc)
|
||||||
|
|
Loading…
Reference in a new issue