Merge branch '4.0' of github.com:kleetus/bitcore-node into 4.0
This commit is contained in:
commit
42c957d02a
@ -25,6 +25,9 @@ function Bitcoin(options) {
|
|||||||
this.subscriptions.rawtransaction = [];
|
this.subscriptions.rawtransaction = [];
|
||||||
this.subscriptions.hashblock = [];
|
this.subscriptions.hashblock = [];
|
||||||
|
|
||||||
|
this.startRetryTimes = this.options.startRetryTimes || 120;
|
||||||
|
this.startRetryInterval = this.options.startRetryInterval || 1000;
|
||||||
|
|
||||||
this._initClients();
|
this._initClients();
|
||||||
|
|
||||||
this._process = options.process || process;
|
this._process = options.process || process;
|
||||||
@ -317,7 +320,7 @@ Bitcoin.prototype._connectProcess = function(config, callback) {
|
|||||||
var node = {};
|
var node = {};
|
||||||
var exitShutdown = false;
|
var exitShutdown = false;
|
||||||
|
|
||||||
async.retry({times: 60, interval: self.startRetryInterval}, function(done) {
|
async.retry({times: self.startRetryTimes, interval: self.startRetryInterval}, function(done) {
|
||||||
if (self.node.stopping) {
|
if (self.node.stopping) {
|
||||||
exitShutdown = true;
|
exitShutdown = true;
|
||||||
return done();
|
return done();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user