mempool: more minor style changes.
This commit is contained in:
parent
effc177a77
commit
1f2c3080bc
@ -1573,15 +1573,15 @@ Mempool.prototype.getCoinView = co(function* getCoinView(tx) {
|
|||||||
|
|
||||||
Mempool.prototype.findMissing = function findMissing(tx, view) {
|
Mempool.prototype.findMissing = function findMissing(tx, view) {
|
||||||
var missing = [];
|
var missing = [];
|
||||||
var i, input, coin;
|
var i, input;
|
||||||
|
|
||||||
for (i = 0; i < tx.inputs.length; i++) {
|
for (i = 0; i < tx.inputs.length; i++) {
|
||||||
input = tx.inputs[i];
|
input = tx.inputs[i];
|
||||||
coin = view.getOutput(input);
|
|
||||||
if (!coin) {
|
if (view.hasEntry(input))
|
||||||
missing.push(input.prevout.hash);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
missing.push(input.prevout.hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (missing.length === 0)
|
if (missing.length === 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user