From 540a587b56d035fa90ea4a99873d96677360c254 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sun, 2 May 2021 20:31:14 +0700 Subject: [PATCH] Don't restart Bitcoin Core or change it's config post IBD --- switch.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/switch.sh b/switch.sh index 07920fb..65b5ecf 100755 --- a/switch.sh +++ b/switch.sh @@ -19,7 +19,6 @@ RPCPASS="${RPCPASS:-$(cat /secrets/rpcpass.txt)}" # Default password loca SLEEPTIME="${SLEEPTIME:-3600}" # Default sleep: 3600 JSONRPCURL="${JSONRPCURL:-http://10.254.2.2:8332}" # Default RPC endpoint: http://10.254.2.2:8332 LND_CONTAINER_NAME="${LND_CONTAINER_NAME:-lnd}" # Default Docker container name: lnd -BITCOIN_CONTAINER_NAME="${BITCOIN_CONTAINER_NAME:-bitcoin}" # Default Docker container name: bitcoin PREV_MATCH= @@ -82,11 +81,6 @@ switch_on_sync_done() { touch /statuses/node-status-bitcoind-ready sed -Ei 's|(bitcoin.node)=neutrino|\1=bitcoind|g' /lnd/lnd.conf sed -i "s/^feeurl=.*//g;" /lnd/lnd.conf - sed -i "s/dbcache=.*/dbcache=200/g;" /bitcoin/bitcoin.conf - - echo "Restarting Bitcoin" - docker stop "$BITCOIN_CONTAINER_NAME" - docker start "$BITCOIN_CONTAINER_NAME" echo "Restarting LND" docker stop "$LND_CONTAINER_NAME"