Browse Source

fix cache reset

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

3
lib/server.js

@ -2448,7 +2448,7 @@ WalletService.prototype._normalizeTxHistory = function(txs) {
});
};
WalletService._cachedBlockheight;
WalletService._cachedBlockheight = {};
WalletService._clearBlockchainHeightCache = function() {
WalletService._cachedBlockheight.current = null;
};
@ -2457,7 +2457,6 @@ WalletService.prototype._getBlockchainHeight = function(network, cb) {
var self = this;
var now = Date.now();
if (!WalletService._cachedBlockheight) WalletService._cachedBlockheight = {};
var cache = WalletService._cachedBlockheight;
function fetchFromBlockchain(cb) {

Loading…
Cancel
Save