diff --git a/bin/eth.sh b/bin/eth.sh index 81f6894..3f4ce9e 100755 --- a/bin/eth.sh +++ b/bin/eth.sh @@ -5,5 +5,5 @@ if [[ -f /usr/bin/geth ]]; then geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "4" -bootnodes "enode://09fbeec0d047e9a37e63f60f8618aa9df0e49271f3fadb2c070dc09e2099b95827b63a8b837c6fd01d0802d457dd83e3bd48bd3e6509f8209ed90dabbc30e3d3@52.16.188.185:30303" -nat "extip:$IP" else - eth -b -x 50 -r 52.16.188.185 -p 30303 -m off -v 4 -j -u $IP -a "0xb52ee9e9d0782c46f07ec2538cbacada1d0fcf69" + eth --bootstrap --peers 50 --remote 52.16.188.185:30303 --mining off --json-rpc --public-ip $IP -v 4 fi \ No newline at end of file diff --git a/lib/node.js b/lib/node.js index 8bb6807..dcab97b 100644 --- a/lib/node.js +++ b/lib/node.js @@ -81,8 +81,7 @@ function Node() blockTimes: [], gasSpending: [], miners: [], - uptime: 0, - errors: [] + uptime: 0 }; this._lastStats = JSON.stringify(this.stats); @@ -141,7 +140,6 @@ function Node() Node.prototype.isActive = function() { this._tries++; - this.stats.errors = []; try { var peers = web3.toDecimal(web3.net.peerCount); @@ -155,10 +153,6 @@ Node.prototype.isActive = function() } } catch (err) { - this.stats.errors.push({ - code: '1', - msg: err - }); console.error("peerCount:", err); } @@ -188,10 +182,6 @@ Node.prototype.getBlock = function(number) return this.stats.block; } catch (err) { - this.stats.errors.push({ - code: '3', - msg: err - }); console.error("blockNumber:", err); } } @@ -205,10 +195,6 @@ Node.prototype.getBlock = function(number) } } catch (err) { - this.stats.errors.push({ - code: '2', - msg: err - }); console.error("getBlock:", err); }