From c2248e13d79689262d6ae09f06b883df6d01808d Mon Sep 17 00:00:00 2001 From: Neal Conner Date: Fri, 16 Feb 2018 16:55:33 +0000 Subject: [PATCH] ETH performance (#99) * Update geth to 1.8.0 * Up cache and maxconnections --- lib/blockchain/common.js | 4 ++-- lib/blockchain/ethereum.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/blockchain/common.js b/lib/blockchain/common.js index 22d832e9..410cadb0 100644 --- a/lib/blockchain/common.js +++ b/lib/blockchain/common.js @@ -25,8 +25,8 @@ const BINARIES = { dir: 'bitcoin-0.15.1/bin' }, ETH: { - url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.7.3-4bb3c89d.tar.gz', - dir: 'geth-linux-amd64-1.7.3-4bb3c89d' + url: 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.0-5f540757.tar.gz', + dir: 'geth-linux-amd64-1.8.0-5f540757' }, ZEC: { url: 'https://z.cash/downloads/zcash-1.0.14-linux64.tar.gz', diff --git a/lib/blockchain/ethereum.js b/lib/blockchain/ethereum.js index 7d5f2bc3..81d81a55 100644 --- a/lib/blockchain/ethereum.js +++ b/lib/blockchain/ethereum.js @@ -7,6 +7,6 @@ module.exports = {setup} function setup (dataDir) { const coinRec = coinUtils.getCryptoCurrency('ETH') common.firewall([coinRec.defaultPort]) - const cmd = `/usr/local/bin/${coinRec.daemon} --datadir "${dataDir}" --syncmode="fast" --cache 500 --rpc` + const cmd = `/usr/local/bin/${coinRec.daemon} --datadir "${dataDir}" --syncmode="fast" --cache 2048 --maxconnections 40 --rpc` common.writeSupervisorConfig(coinRec, cmd) }