From e0cc07e20f6afa56c3e3935d8a10b2bc4716d3f0 Mon Sep 17 00:00:00 2001 From: nmfretz Date: Tue, 29 Oct 2024 15:49:06 +1000 Subject: [PATCH] Add testnet4 logic to exports.sh --- bitcoin/exports.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bitcoin/exports.sh b/bitcoin/exports.sh index 3fdc179f16..fc0ce8b70f 100644 --- a/bitcoin/exports.sh +++ b/bitcoin/exports.sh @@ -24,7 +24,9 @@ BITCOIN_ENV_FILE="${EXPORTS_APP_DIR}/.env" "main") BITCOIN_NETWORK="mainnet";; "test") - BITCOIN_NETWORK="testnet";; + BITCOIN_NETWORK="testnet3";; + "testnet4") + BITCOIN_NETWORK="testnet4";; "signet") BITCOIN_NETWORK="signet";; "regtest") @@ -64,11 +66,16 @@ fi if [[ "${APP_BITCOIN_NETWORK}" == "mainnet" ]]; then BITCOIN_CHAIN="main" -elif [[ "${APP_BITCOIN_NETWORK}" == "testnet" ]]; then +elif [[ "${APP_BITCOIN_NETWORK}" == "testnet3" ]]; then BITCOIN_CHAIN="test" # export APP_BITCOIN_RPC_PORT="18332" # export APP_BITCOIN_P2P_PORT="18333" # export APP_BITCOIN_TOR_PORT="18334" +elif [[ "${APP_BITCOIN_NETWORK}" == "testnet4" ]]; then + BITCOIN_CHAIN="testnet4" + # export APP_BITCOIN_RPC_PORT="48332" + # export APP_BITCOIN_P2P_PORT="48333" + # export APP_BITCOIN_TOR_PORT="48334" elif [[ "${APP_BITCOIN_NETWORK}" == "signet" ]]; then BITCOIN_CHAIN="signet" # export APP_BITCOIN_RPC_PORT="38332" @@ -94,6 +101,7 @@ BIN_ARGS=() # BIN_ARGS+=( "-bind=${APP_BITCOIN_NODE_IP}" ) # BIN_ARGS+=( "-port=${APP_BITCOIN_P2P_PORT}" ) # BIN_ARGS+=( "-rpcport=${APP_BITCOIN_RPC_PORT}" ) +# We hardcode the ports p2p and rpc ports to always be the same for all networks BIN_ARGS+=( "-port=8333" ) BIN_ARGS+=( "-rpcport=8332" ) BIN_ARGS+=( "-rpcbind=${APP_BITCOIN_NODE_IP}" )