From 88a38517573276a6e0046feb1e4104ed72feaad5 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 3 Apr 2015 04:28:37 +0300 Subject: [PATCH 1/3] added sleep before start --- app.js | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/app.js b/app.js index 3bd8026..a74e2fb 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,7 @@ var nodeModel = require('./lib/node'); +var sleep = require('sleep'); + +sleep.sleep(10); var node = new nodeModel(); diff --git a/package.json b/package.json index 737b20e..ead35a2 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "primus-emit": "^0.1.2", "primus-spark-latency": "^0.1.1", "shelljs": "^0.4.0", + "sleep": "^2.0.0", "ws": "^0.7.1" }, "scripts": { From b51f198427d2b721d46e684e8950391480e309d8 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 3 Apr 2015 04:42:10 +0300 Subject: [PATCH 2/3] added poc-9 to eth startup --- bin/eth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/eth.sh b/bin/eth.sh index cafdd3c..ec79586 100644 --- a/bin/eth.sh +++ b/bin/eth.sh @@ -4,5 +4,5 @@ if [[ -f /usr/bin/geth ]]; then geth -rpc -maxpeers "50" -loglevel "1" else - eth -b -x 50 -l 30303 -n off -m off -v 1 -j + eth -b -x 50 -r poc-9.ethdev.com -p 30303 -v 1 -j fi \ No newline at end of file From 817d15a2cc9b81123e9f16bf6426715fb57713c9 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 3 Apr 2015 05:17:44 +0300 Subject: [PATCH 3/3] changed delay to 5s --- app.js | 2 +- bin/eth.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index a74e2fb..6ff046b 100644 --- a/app.js +++ b/app.js @@ -1,7 +1,7 @@ var nodeModel = require('./lib/node'); var sleep = require('sleep'); -sleep.sleep(10); +sleep.sleep(5); var node = new nodeModel(); diff --git a/bin/eth.sh b/bin/eth.sh index ec79586..f074501 100644 --- a/bin/eth.sh +++ b/bin/eth.sh @@ -4,5 +4,5 @@ if [[ -f /usr/bin/geth ]]; then geth -rpc -maxpeers "50" -loglevel "1" else - eth -b -x 50 -r poc-9.ethdev.com -p 30303 -v 1 -j + eth -b -x 50 -r poc-9.ethdev.com -p 30303 -m off -n off -v 0 -j fi \ No newline at end of file