|
|
@ -1063,7 +1063,7 @@ WalletService.prototype.scan = function(opts, cb) { |
|
|
|
var allAddresses = []; |
|
|
|
|
|
|
|
function deriveAddresses(size, derivator, cb) { |
|
|
|
async.map(_.range(size), function(i, next) { |
|
|
|
async.mapSeries(_.range(size), function(i, next) { |
|
|
|
setTimeout(function() { |
|
|
|
next(null, derivator()); |
|
|
|
}, WalletService.scanConfig.DERIVATION_DELAY) |
|
|
@ -1109,7 +1109,7 @@ WalletService.prototype.scan = function(opts, cb) { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
async.each(derivators, function(derivator, next) { |
|
|
|
async.eachSeries(derivators, function(derivator, next) { |
|
|
|
scanBranch(derivator, next); |
|
|
|
}, function(err) { |
|
|
|
if (err) return cb(err); |
|
|
|