mempool: force broadcasting on addTX fail.
This commit is contained in:
parent
256c449e68
commit
d3f94dbc6a
@ -1304,7 +1304,7 @@ Mempool.prototype.storeOrphan = function storeOrphan(tx, missing) {
|
|||||||
this.logger.debug('Ignoring large orphan: %s', tx.txid());
|
this.logger.debug('Ignoring large orphan: %s', tx.txid());
|
||||||
if (!tx.hasWitness())
|
if (!tx.hasWitness())
|
||||||
this.rejects.add(tx.hash());
|
this.rejects.add(tx.hash());
|
||||||
return;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < missing.length; i++) {
|
for (i = 0; i < missing.length; i++) {
|
||||||
@ -1312,7 +1312,7 @@ Mempool.prototype.storeOrphan = function storeOrphan(tx, missing) {
|
|||||||
if (this.hasReject(prev)) {
|
if (this.hasReject(prev)) {
|
||||||
this.logger.debug('Not storing orphan %s (rejected parents).', tx.txid());
|
this.logger.debug('Not storing orphan %s (rejected parents).', tx.txid());
|
||||||
this.rejects.add(tx.hash());
|
this.rejects.add(tx.hash());
|
||||||
return;
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2179,7 +2179,7 @@ Pool.prototype._handleTX = co(function* handleTX(peer, packet) {
|
|||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (missing) {
|
if (missing && missing.length > 0) {
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
'Requesting %d missing transactions (%s).',
|
'Requesting %d missing transactions (%s).',
|
||||||
missing.length, peer.hostname());
|
missing.length, peer.hostname());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user