From c102515ab422e70cd681961c8627f976de941ca8 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 27 Jul 2016 15:25:07 -0300 Subject: [PATCH] remove active addresses from bc monitor --- lib/blockchainmonitor.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/blockchainmonitor.js b/lib/blockchainmonitor.js index 8545522..e2df13a 100644 --- a/lib/blockchainmonitor.js +++ b/lib/blockchainmonitor.js @@ -170,9 +170,7 @@ BlockchainMonitor.prototype._handleTxOuts = function(data) { walletId: walletId, }); self.storage.softResetTxHistoryCache(walletId, function() { - self._updateActiveAddresses(address, function() { - self._storeAndBroadcastNotification(notification, next); - }); + self._storeAndBroadcastNotification(notification, next); }); }); }, function(err) { @@ -180,17 +178,6 @@ BlockchainMonitor.prototype._handleTxOuts = function(data) { }); }; -BlockchainMonitor.prototype._updateActiveAddresses = function(address, cb) { - var self = this; - - self.storage.storeActiveAddresses(address.walletId, address.address, function(err) { - if (err) { - log.warn('Could not update wallet cache', err); - } - return cb(err); - }); -}; - BlockchainMonitor.prototype._handleIncomingTx = function(data) { this._handleTxId(data); this._handleTxOuts(data);