Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Don't restart Bitcoin Core or change it's config post IBD (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds authored May 2, 2021
1 parent 905bb0d commit d8a8c82
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d8a8c82

Please sign in to comment.