From deeea3b890dab96c046d7358e2e2e69bd048b887 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 14 May 2015 23:03:52 +0300 Subject: [PATCH] increased web3 connection attempt delay & limit --- lib/node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {