fix tests

This commit is contained in:
Matias Alejo Garcia 2014-12-11 19:07:54 -03:00
commit e4ebb535ca
4 changed files with 11 additions and 9 deletions

View file

@ -2452,9 +2452,9 @@ Wallet.prototype.updateIndexes = function(callback) {
async.parallel(tasks, function(err) {
if (err) callback(err);
log.debug('Wallet:' + self.id + ' Indexes updated');
this.clearUnspentCache();
this.subscribeToAddresses();
this.emitAndKeepAlive('newAddresses');
self.clearUnspentCache();
self.subscribeToAddresses();
self.emitAndKeepAlive('newAddresses');
callback();
});
};