From 5df0023ba3137b65d882f04e17662d2e9d0841c3 Mon Sep 17 00:00:00 2001 From: pcw109550 Date: Wed, 3 May 2023 21:30:48 +0900 Subject: [PATCH 1/2] Remove ethash verification cache --- clients/go-ethereum/Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clients/go-ethereum/Dockerfile b/clients/go-ethereum/Dockerfile index 27564e7d18..1e5422874b 100644 --- a/clients/go-ethereum/Dockerfile +++ b/clients/go-ethereum/Dockerfile @@ -45,9 +45,4 @@ ADD genesis.json /genesis.json # Export the usual networking ports to allow outside access to the node EXPOSE 8545 8546 8547 8551 30303 30303/udp -# Generate the ethash verification caches -RUN \ - /usr/local/bin/geth makecache 1 ~/.ethereum/geth/ethash && \ - /usr/local/bin/geth makecache 30001 ~/.ethereum/geth/ethash - ENTRYPOINT ["/geth.sh"] From 3bad47f5bfabe7c00da205c6031df2a156cf0196 Mon Sep 17 00:00:00 2001 From: pcw109550 Date: Wed, 3 May 2023 21:39:00 +0900 Subject: [PATCH 2/2] Remove miner.threads flag --- clients/go-ethereum/geth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/go-ethereum/geth.sh b/clients/go-ethereum/geth.sh index 536d9cf79b..1f69f311e0 100644 --- a/clients/go-ethereum/geth.sh +++ b/clients/go-ethereum/geth.sh @@ -141,7 +141,7 @@ fi # Configure any mining operation if [ "$HIVE_MINER" != "" ] && [ "$HIVE_NODETYPE" != "light" ]; then - FLAGS="$FLAGS --mine --miner.threads 1 --miner.etherbase $HIVE_MINER" + FLAGS="$FLAGS --mine --miner.etherbase $HIVE_MINER" fi if [ "$HIVE_MINER_EXTRA" != "" ]; then FLAGS="$FLAGS --miner.extradata $HIVE_MINER_EXTRA"