init blockchain explorer outside loop

This commit is contained in:
Ivan Socolsky 2015-07-15 22:44:34 -03:00
parent 2b243cb0a2
commit 56f39087cb
1 changed files with 1 additions and 1 deletions

View File

@ -770,8 +770,8 @@ WalletService.prototype._sampleFeeLevels = function(network, points, cb) {
var self = this;
// TODO: cache blockexplorer data
var bc = self._getBlockchainExplorer(network);
async.map(points, function(p, next) {
var bc = self._getBlockchainExplorer(network);
bc.estimateFee(p, function(err, result) {
if (err) {
log.error('Error estimating fee', err);