listen for event sooner and increasing maxOutbound peers
This commit is contained in:
parent
68fb731e83
commit
fa7868e468
@ -18,11 +18,11 @@ Bcoin.prototype.start = function(callback) {
|
|||||||
|
|
||||||
self._bcoin.open().then(function() {
|
self._bcoin.open().then(function() {
|
||||||
self._bcoin.connect().then(function() {
|
self._bcoin.connect().then(function() {
|
||||||
self._bcoin.startSync();
|
|
||||||
log.info('Waiting for Bcoin to sync');
|
|
||||||
self._bcoin.pool.once('full', function() {
|
self._bcoin.pool.once('full', function() {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
self._bcoin.startSync();
|
||||||
|
log.info('Waiting for Bcoin to sync');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -45,7 +45,9 @@ Bcoin.prototype._getConfig = function(options) {
|
|||||||
logLevel: 'info',
|
logLevel: 'info',
|
||||||
port: options.port,
|
port: options.port,
|
||||||
persistent: true,
|
persistent: true,
|
||||||
workers: true
|
workers: true,
|
||||||
|
maxOutbound: 16,
|
||||||
|
loader: require
|
||||||
};
|
};
|
||||||
if (options.prefix) {
|
if (options.prefix) {
|
||||||
config.prefix = options.prefix;
|
config.prefix = options.prefix;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user