Browse Source

remove active addresses from bc monitor

activeAddress
Ivan Socolsky 9 years ago
parent
commit
c102515ab4
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 13
      lib/blockchainmonitor.js

13
lib/blockchainmonitor.js

@ -170,27 +170,14 @@ BlockchainMonitor.prototype._handleTxOuts = function(data) {
walletId: walletId,
});
self.storage.softResetTxHistoryCache(walletId, function() {
self._updateActiveAddresses(address, function() {
self._storeAndBroadcastNotification(notification, next);
});
});
});
}, function(err) {
return;
});
};
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);

Loading…
Cancel
Save