From 68fb731e832da6c28ebdd1bd40af763d306723e5 Mon Sep 17 00:00:00 2001 From: Justin Langston Date: Wed, 9 Aug 2017 02:10:46 -0400 Subject: [PATCH] switching to pool full event to indicate the sync is complete and p2p online --- lib/services/p2p/bcoin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/services/p2p/bcoin.js b/lib/services/p2p/bcoin.js index 92883629..9c15c75f 100644 --- a/lib/services/p2p/bcoin.js +++ b/lib/services/p2p/bcoin.js @@ -20,7 +20,7 @@ Bcoin.prototype.start = function(callback) { self._bcoin.connect().then(function() { self._bcoin.startSync(); log.info('Waiting for Bcoin to sync'); - self._bcoin.pool.once('listening', function() { + self._bcoin.pool.once('full', function() { callback(); }); }); @@ -45,7 +45,6 @@ Bcoin.prototype._getConfig = function(options) { logLevel: 'info', port: options.port, persistent: true, - loader: require, workers: true }; if (options.prefix) {