Address Mempool Index: Fix bugs with reset mempool.
This commit is contained in:
parent
ad120213e1
commit
62faecb9ae
|
@ -180,8 +180,8 @@ AddressService.prototype.resetMempoolIndex = function(callback) {
|
|||
var transactionBuffers = self.node.services.bitcoind.getMempoolTransactions();
|
||||
this.mempoolIndex = {};
|
||||
async.each(transactionBuffers, function(txBuffer, next) {
|
||||
var tx = Transaction.fromBuffer(txBuffer);
|
||||
this.updateMempoolIndex(tx);
|
||||
var tx = Transaction().fromBuffer(txBuffer);
|
||||
self.updateMempoolIndex(tx);
|
||||
setImmediate(next);
|
||||
}, function(err) {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue