switching to pool full event to indicate the sync is complete and p2p online
This commit is contained in:
parent
8e9829016e
commit
68fb731e83
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user