mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-11-16 15:57:38 +00:00
check that remote node actually works
This commit is contained in:
parent
7ae1eb55b2
commit
d3b442b7f7
1 changed files with 10 additions and 3 deletions
13
install.sh
13
install.sh
|
@ -132,9 +132,16 @@ until [[ "$l" =~ ^[12]$ ]]; do
|
|||
read -p 'Select an option [1|2]: ' l
|
||||
case $l in
|
||||
1)
|
||||
read -p 'Enter Address of Monero node [example: 192.168.1.123] ' monerod_addr
|
||||
read -p 'Enter RPC Port for the Monero node [example: 18081] ' monerod_port
|
||||
$green"\nLook good? $monerod_addr:$monerod_port"; $nocolor
|
||||
until [[ $checknode ]]; do
|
||||
read -p 'Enter Address of Monero node [example: 192.168.1.123] ' monerod_addr
|
||||
read -p 'Enter RPC Port for the Monero node [example: 18081] ' monerod_port
|
||||
checknode=$(curl -sk http://$monerod_addr:$monerod_port/get_info)
|
||||
if [[ $checknode ]]; then
|
||||
$green"\nSuccessfully connected to the XMR node @ $monerod_addr:$monerod_port"; $nocolor
|
||||
else
|
||||
$red"\nThe node at $monerod_addr:$monerod_port is not accessible. Try again\n\n"; $nocolor
|
||||
fi
|
||||
done
|
||||
;;
|
||||
2)
|
||||
$green"\nBasicSwapDEX will run the Monero node for you."; $nocolor
|
||||
|
|
Loading…
Reference in a new issue