Address Mempool Index: Fix bugs with reset mempool.

This commit is contained in:
Braydon Fuller 2015-09-16 19:58:19 -04:00 committed by Chris Kleeschulte
parent ad120213e1
commit 62faecb9ae
1 changed files with 2 additions and 2 deletions

View File

@ -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) {