Skip to content

Commit

Permalink
Add testnet4 logic to exports.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nmfretz committed Oct 29, 2024
1 parent 1be733f commit e0cc07e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bitcoin/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"
Expand All @@ -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}" )
Expand Down

0 comments on commit e0cc07e

Please sign in to comment.