From da7640cd273d1d375fda14c1515614553250f59c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 29 Dec 2016 15:35:03 -0800 Subject: [PATCH] peer: minor. --- lib/net/peer.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/net/peer.js b/lib/net/peer.js index 660a15b4..d670f636 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -1700,9 +1700,6 @@ Peer.prototype.getBroadcasted = function getBroadcasted(item) { entry.ack(this); - if (!entry.msg) - return; - if (item.isTX()) { if (entry.type !== invTypes.TX) return; @@ -1775,7 +1772,7 @@ Peer.prototype.sendBlock = co(function* sendBlock(item, witness) { if (!block) return false; - yield this.sendRaw('block', block); + this.sendRaw('block', block); return true; }