fix: allow ownOutputs as orphans - fixes failing test. see #27.
This commit is contained in:
parent
1e6de0e5e1
commit
6a03b30ddf
@ -98,12 +98,12 @@ TXPool.prototype.add = function add(tx, noWrite) {
|
|||||||
// continue;
|
// continue;
|
||||||
|
|
||||||
// Only add orphans if this input is ours or the tx has outputs that are ours.
|
// Only add orphans if this input is ours or the tx has outputs that are ours.
|
||||||
// if (!ownOutput && (!ownInput || !~ownInput.indexOf(input)))
|
if (!ownOutput && (!ownInput || !~ownInput.indexOf(input)))
|
||||||
// continue;
|
continue;
|
||||||
|
|
||||||
// Only add orphans if this input is ours.
|
// Only add orphans if this input is ours.
|
||||||
if (!ownInput || !~ownInput.indexOf(input))
|
// if (!ownInput || !~ownInput.indexOf(input))
|
||||||
continue;
|
// continue;
|
||||||
|
|
||||||
// Add orphan, if no parent transaction is yet known
|
// Add orphan, if no parent transaction is yet known
|
||||||
var orphan = { tx: tx, index: input.out.index };
|
var orphan = { tx: tx, index: input.out.index };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user