fix cache reset

This commit is contained in:
Ivan Socolsky 2016-08-09 09:31:03 -03:00
parent 7a77805b29
commit 13ca84f077
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 1 additions and 2 deletions

View File

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