diff --git a/lib/mempool/mempool.js b/lib/mempool/mempool.js index b6b52f8b..021d6eb8 100644 --- a/lib/mempool/mempool.js +++ b/lib/mempool/mempool.js @@ -1573,15 +1573,15 @@ Mempool.prototype.getCoinView = co(function* getCoinView(tx) { Mempool.prototype.findMissing = function findMissing(tx, view) { var missing = []; - var i, input, coin; + var i, input; for (i = 0; i < tx.inputs.length; i++) { input = tx.inputs[i]; - coin = view.getOutput(input); - if (!coin) { - missing.push(input.prevout.hash); + + if (view.hasEntry(input)) continue; - } + + missing.push(input.prevout.hash); } if (missing.length === 0)