mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 20:24:39 +02:00
* set default port value * fix port determine
This commit is contained in:
@@ -153,12 +153,15 @@ HiddenServicePort 8333 127.0.0.1:8333" | sudo tee -a /etc/tor/torrc
|
|||||||
;;
|
;;
|
||||||
${network}RPC)
|
${network}RPC)
|
||||||
# vars
|
# vars
|
||||||
if [ $(${chain}net) = mainnet ];then
|
if [ "${chain}net" == "mainnet" ]; then
|
||||||
BITCOINRPCPORT=8332
|
BITCOINRPCPORT=8332
|
||||||
elif [ $(${chain}net) = testnet ];then
|
elif [ "${chain}net" == "testnet" ]; then
|
||||||
BITCOINRPCPORT=18332
|
BITCOINRPCPORT=18332
|
||||||
elif [ $(${chain}net) = signet ];then
|
elif [ "${chain}net" == "signet" ]; then
|
||||||
BITCOINRPCPORT=38332
|
BITCOINRPCPORT=38332
|
||||||
|
else
|
||||||
|
# have this to signal that selection went wrong
|
||||||
|
BITCOINRPCPORT=0
|
||||||
fi
|
fi
|
||||||
echo "# Running on ${chain}net"
|
echo "# Running on ${chain}net"
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user