fix cache reset
This commit is contained in:
parent
7a77805b29
commit
13ca84f077
|
@ -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…
Reference in New Issue