Called next to proceed with sync.
This commit is contained in:
parent
7e08651d95
commit
3051c04147
@ -250,9 +250,6 @@ AddressService.prototype.blockHandler = function(block, connectBlock, callback)
|
|||||||
var inputs = tx.inputs;
|
var inputs = tx.inputs;
|
||||||
var outputs = tx.outputs;
|
var outputs = tx.outputs;
|
||||||
|
|
||||||
// Subscription messages
|
|
||||||
var txmessages = {};
|
|
||||||
|
|
||||||
var outputLength = outputs.length;
|
var outputLength = outputs.length;
|
||||||
for (var outputIndex = 0; outputIndex < outputLength; outputIndex++) {
|
for (var outputIndex = 0; outputIndex < outputLength; outputIndex++) {
|
||||||
var output = outputs[outputIndex];
|
var output = outputs[outputIndex];
|
||||||
@ -304,6 +301,7 @@ AddressService.prototype.blockHandler = function(block, connectBlock, callback)
|
|||||||
type: 'del',
|
type: 'del',
|
||||||
key: inputKey
|
key: inputKey
|
||||||
});
|
});
|
||||||
|
next();
|
||||||
} else { // uncommon and slower, this happens during a reorg
|
} else { // uncommon and slower, this happens during a reorg
|
||||||
self.node.services.transaction.getTransaction(input.prevTxId, {}, function(err, tx) {
|
self.node.services.transaction.getTransaction(input.prevTxId, {}, function(err, tx) {
|
||||||
var utxo = tx.outputs[input.outputIndex];
|
var utxo = tx.outputs[input.outputIndex];
|
||||||
@ -313,6 +311,7 @@ AddressService.prototype.blockHandler = function(block, connectBlock, callback)
|
|||||||
key: inputKey,
|
key: inputKey,
|
||||||
value: inputValue
|
value: inputValue
|
||||||
});
|
});
|
||||||
|
next();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
@ -326,7 +325,6 @@ AddressService.prototype.blockHandler = function(block, connectBlock, callback)
|
|||||||
if(err) {
|
if(err) {
|
||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(null, operations);
|
callback(null, operations);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user