diff --git a/lib/services/p2p/bcoin.js b/lib/services/p2p/bcoin.js index 9c15c75f..c7f8d0f8 100644 --- a/lib/services/p2p/bcoin.js +++ b/lib/services/p2p/bcoin.js @@ -18,11 +18,11 @@ Bcoin.prototype.start = function(callback) { self._bcoin.open().then(function() { self._bcoin.connect().then(function() { - self._bcoin.startSync(); - log.info('Waiting for Bcoin to sync'); self._bcoin.pool.once('full', function() { callback(); }); + self._bcoin.startSync(); + log.info('Waiting for Bcoin to sync'); }); }); }; @@ -45,7 +45,9 @@ Bcoin.prototype._getConfig = function(options) { logLevel: 'info', port: options.port, persistent: true, - workers: true + workers: true, + maxOutbound: 16, + loader: require }; if (options.prefix) { config.prefix = options.prefix;