Ivan Socolsky
9 years ago
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with
1 additions and
2 deletions
-
lib/server.js
|
@ -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) { |
|
|