From b211274388197b953d18fee6b87e49d0d572480e Mon Sep 17 00:00:00 2001 From: nolim1t Date: Wed, 24 Jun 2020 16:26:30 +0700 Subject: [PATCH] Re-write rpcport for different modes --- configure-box.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure-box.sh b/configure-box.sh index 4f2120a..cfeec9c 100755 --- a/configure-box.sh +++ b/configure-box.sh @@ -33,6 +33,7 @@ if [ ! -z $TESTNET ] && [ -z $REGTEST ]; then # Update bitcoin.conf sed -i 's/\#\[test\]/\[test\]/g;' bitcoin/bitcoin.conf sed -i 's/\#testnet=1/testnet=1/g' bitcoin/bitcoin.conf + sed -i 's/rpcport=8332/rpcport=18332/g; ' bitcoin/bitcoin.conf echo "Setting testnet port" sed -i 's/RPCPORT/18332/g; ' docker-compose.yml # Update docker-compose @@ -52,6 +53,7 @@ if [ -z $TESTNET ] && [ ! -z $REGTEST ]; then echo "Enabling regtest mode if REGTEST variable is set" sed -i 's/\#\[regtest\]/\[regtest\]/g;' bitcoin/bitcoin.conf sed -i 's/\#regtest=1/regtest=1/g' bitcoin/bitcoin.conf + sed -i 's/rpcport=8332/rpcport=18443/g; ' bitcoin/bitcoin.conf sed -i 's/mainnet/regtest/g; ' docker-compose.yml echo "Setting regtest port" sed -i 's/RPCPORT/18443/g; ' docker-compose.yml