From 583e72cd8e7fd526dd6ba812c56a742b217a3abf Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 5 Dec 2018 15:18:52 +0100 Subject: [PATCH] fix for testnet --- home.admin/BBconnectPeer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/BBconnectPeer.sh b/home.admin/BBconnectPeer.sh index b5a4966..2dac7a6 100755 --- a/home.admin/BBconnectPeer.sh +++ b/home.admin/BBconnectPeer.sh @@ -29,7 +29,7 @@ if [ ${#_input} -eq 0 ]; then fi # build command -command="lncli --chain=${network} connect ${_input}" +command="lncli --chain=${network} --network=${chain}net connect ${_input}" # info output clear @@ -88,7 +88,7 @@ else # check if the node is now in peer list pubkey=$(echo $_input | cut -d '@' -f1) - isPeer=$(lncli --chain=${network} listpeers 2>/dev/null| grep "${pubkey}" -c) + isPeer=$(lncli --chain=${network} --network=${chain}net listpeers 2>/dev/null| grep "${pubkey}" -c) if [ ${isPeer} -eq 0 ]; then # basic error message