#2173 Connect Specter fixes (#2197)

* set default port value
* fix port determine
This commit is contained in:
/rootzoll 2021-04-18 18:46:14 +02:00 committed by GitHub
parent d45bf5f25d
commit 745f9b0c7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,12 +153,15 @@ HiddenServicePort 8333 127.0.0.1:8333" | sudo tee -a /etc/tor/torrc
;;
${network}RPC)
# vars
if [ $(${chain}net) = mainnet ];then
if [ "${chain}net" == "mainnet" ]; then
BITCOINRPCPORT=8332
elif [ $(${chain}net) = testnet ];then
elif [ "${chain}net" == "testnet" ]; then
BITCOINRPCPORT=18332
elif [ $(${chain}net) = signet ];then
elif [ "${chain}net" == "signet" ]; then
BITCOINRPCPORT=38332
else
# have this to signal that selection went wrong
BITCOINRPCPORT=0
fi
echo "# Running on ${chain}net"
echo