Matias Alejo Garcia
7 years ago
No known key found for this signature in database
GPG Key ID: 2470DB551277AB3
1 changed files with
16 additions and
13 deletions
-
lib/server.js
|
@ -1277,6 +1277,8 @@ WalletService.prototype._getBalanceFromAddresses = function(opts, cb) { |
|
|
WalletService.prototype._getBalanceOneStep = function(opts, cb) { |
|
|
WalletService.prototype._getBalanceOneStep = function(opts, cb) { |
|
|
var self = this; |
|
|
var self = this; |
|
|
|
|
|
|
|
|
|
|
|
// This lock is to prevent server starvation on big wallets
|
|
|
|
|
|
self._runLocked(cb, function(cb) { |
|
|
self.storage.fetchAddresses(self.walletId, function(err, addresses) { |
|
|
self.storage.fetchAddresses(self.walletId, function(err, addresses) { |
|
|
if (err) return cb(err); |
|
|
if (err) return cb(err); |
|
|
self._getBalanceFromAddresses({ |
|
|
self._getBalanceFromAddresses({ |
|
@ -1295,6 +1297,7 @@ WalletService.prototype._getBalanceOneStep = function(opts, cb) { |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|