init blockchain explorer outside loop
This commit is contained in:
parent
2b243cb0a2
commit
56f39087cb
|
@ -770,8 +770,8 @@ WalletService.prototype._sampleFeeLevels = function(network, points, cb) {
|
|||
var self = this;
|
||||
|
||||
// TODO: cache blockexplorer data
|
||||
async.map(points, function(p, next) {
|
||||
var bc = self._getBlockchainExplorer(network);
|
||||
async.map(points, function(p, next) {
|
||||
bc.estimateFee(p, function(err, result) {
|
||||
if (err) {
|
||||
log.error('Error estimating fee', err);
|
||||
|
|
Loading…
Reference in New Issue