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.connect().then(function() {
|
||||||
self._bcoin.startSync();
|
self._bcoin.startSync();
|
||||||
log.info('Waiting for Bcoin to sync');
|
log.info('Waiting for Bcoin to sync');
|
||||||
self._bcoin.pool.once('listening', function() {
|
self._bcoin.pool.once('full', function() {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -45,7 +45,6 @@ Bcoin.prototype._getConfig = function(options) {
|
|||||||
logLevel: 'info',
|
logLevel: 'info',
|
||||||
port: options.port,
|
port: options.port,
|
||||||
persistent: true,
|
persistent: true,
|
||||||
loader: require,
|
|
||||||
workers: true
|
workers: true
|
||||||
};
|
};
|
||||||
if (options.prefix) {
|
if (options.prefix) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user