diff --git a/lib/node.js b/lib/node.js index d43bc3f..0aea334 100644 --- a/lib/node.js +++ b/lib/node.js @@ -34,7 +34,7 @@ var UPDATE_INTERVAL = 5000; var PING_INTERVAL = 2000; var MINERS_LIMIT = 5; var MAX_HISTORY_UPDATE = 50; -var MAX_CONNECTION_ATTEMPTS = 10; +var MAX_CONNECTION_ATTEMPTS = 15; Socket = Primus.createSocket({ transformer: 'websockets', @@ -156,7 +156,7 @@ Node.prototype.checkWeb3Connection = function() setTimeout(function () { self.checkWeb3Connection(); - }, 500 * this._connection_attempts); + }, 1000 * this._connection_attempts); } else {