|
|
@ -65,7 +65,6 @@ WalletService.BACKOFF_TIME = 2; |
|
|
|
// Fund scanning parameters
|
|
|
|
WalletService.SCAN_CONFIG = { |
|
|
|
maxGap: 20, |
|
|
|
derivationDelay: 10, // in milliseconds
|
|
|
|
}; |
|
|
|
|
|
|
|
WalletService.FEE_LEVELS = [{ |
|
|
@ -1901,6 +1900,8 @@ WalletService.prototype.scan = function(opts, cb) { |
|
|
|
}); |
|
|
|
}, function(err) { |
|
|
|
derivator.rewind(gap); |
|
|
|
console.log('*** [server.js ln1903] _.pluck(allAddresses, "path"):', _.pluck(allAddresses, "path")); // TODO
|
|
|
|
|
|
|
|
return cb(err, _.dropRight(allAddresses, gap)); |
|
|
|
}); |
|
|
|
}; |
|
|
@ -1935,6 +1936,8 @@ WalletService.prototype.scan = function(opts, cb) { |
|
|
|
|
|
|
|
async.eachSeries(derivators, function(derivator, next) { |
|
|
|
scanBranch(derivator, function(err, addresses) { |
|
|
|
console.log('*** [server.js ln1937] _.pluck(addresses, "path"):', _.pluck(addresses, "path")); // TODO
|
|
|
|
|
|
|
|
if (err) return next(err); |
|
|
|
self.storage.storeAddressAndWallet(wallet, addresses, next); |
|
|
|
}); |
|
|
|