mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
* set default port value * fix port determine
This commit is contained in:
parent
d45bf5f25d
commit
745f9b0c7c
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue