switching to pool full event to indicate the sync is complete and p2p online

This commit is contained in:
Justin Langston 2017-08-09 02:10:46 -04:00
parent 8e9829016e
commit 68fb731e83
No known key found for this signature in database
GPG Key ID: EBB3714C72F9FE5D

View File

@ -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) {