peer: minor.
This commit is contained in:
parent
943c5d2d12
commit
da7640cd27
@ -1700,9 +1700,6 @@ Peer.prototype.getBroadcasted = function getBroadcasted(item) {
|
|||||||
|
|
||||||
entry.ack(this);
|
entry.ack(this);
|
||||||
|
|
||||||
if (!entry.msg)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (item.isTX()) {
|
if (item.isTX()) {
|
||||||
if (entry.type !== invTypes.TX)
|
if (entry.type !== invTypes.TX)
|
||||||
return;
|
return;
|
||||||
@ -1775,7 +1772,7 @@ Peer.prototype.sendBlock = co(function* sendBlock(item, witness) {
|
|||||||
if (!block)
|
if (!block)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
yield this.sendRaw('block', block);
|
this.sendRaw('block', block);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user