commit
596122784f
@ -5,5 +5,5 @@ if [[ -f /usr/bin/geth ]];
|
|||||||
then
|
then
|
||||||
geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "4" -bootnodes "enode://09fbeec0d047e9a37e63f60f8618aa9df0e49271f3fadb2c070dc09e2099b95827b63a8b837c6fd01d0802d457dd83e3bd48bd3e6509f8209ed90dabbc30e3d3@52.16.188.185:30303" -nat "extip:$IP"
|
geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "4" -bootnodes "enode://09fbeec0d047e9a37e63f60f8618aa9df0e49271f3fadb2c070dc09e2099b95827b63a8b837c6fd01d0802d457dd83e3bd48bd3e6509f8209ed90dabbc30e3d3@52.16.188.185:30303" -nat "extip:$IP"
|
||||||
else
|
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
|
fi
|
16
lib/node.js
16
lib/node.js
@ -81,8 +81,7 @@ function Node()
|
|||||||
blockTimes: [],
|
blockTimes: [],
|
||||||
gasSpending: [],
|
gasSpending: [],
|
||||||
miners: [],
|
miners: [],
|
||||||
uptime: 0,
|
uptime: 0
|
||||||
errors: []
|
|
||||||
};
|
};
|
||||||
this._lastStats = JSON.stringify(this.stats);
|
this._lastStats = JSON.stringify(this.stats);
|
||||||
|
|
||||||
@ -141,7 +140,6 @@ function Node()
|
|||||||
Node.prototype.isActive = function()
|
Node.prototype.isActive = function()
|
||||||
{
|
{
|
||||||
this._tries++;
|
this._tries++;
|
||||||
this.stats.errors = [];
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var peers = web3.toDecimal(web3.net.peerCount);
|
var peers = web3.toDecimal(web3.net.peerCount);
|
||||||
@ -155,10 +153,6 @@ Node.prototype.isActive = function()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
this.stats.errors.push({
|
|
||||||
code: '1',
|
|
||||||
msg: err
|
|
||||||
});
|
|
||||||
console.error("peerCount:", err);
|
console.error("peerCount:", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,10 +182,6 @@ Node.prototype.getBlock = function(number)
|
|||||||
return this.stats.block;
|
return this.stats.block;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
this.stats.errors.push({
|
|
||||||
code: '3',
|
|
||||||
msg: err
|
|
||||||
});
|
|
||||||
console.error("blockNumber:", err);
|
console.error("blockNumber:", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -205,10 +195,6 @@ Node.prototype.getBlock = function(number)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
this.stats.errors.push({
|
|
||||||
code: '2',
|
|
||||||
msg: err
|
|
||||||
});
|
|
||||||
console.error("getBlock:", err);
|
console.error("getBlock:", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user