cln: add CASHOUT option

This commit is contained in:
openoms 2021-07-06 01:00:12 +01:00
parent 59895c673d
commit 8193bfb09b
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ if [ ${#LNdefault} -gt 0 ]&&[ $LNdefault = lnd ];then
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
fi
#TODO OPTIONS+=(CASHOUT "Remove Funds from LND")
OPTIONS+=(CASHOUT "Remove Funds from LND")
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \

View file

@ -92,7 +92,7 @@ echo "******************************"
if [ ${LNTYPE} = "cln" ];then
# TODO no easy way to sweep funds
# withdraw destination satoshi [feerate] [minconf] [utxos]
command="NOT IMPLEMENTED YET"
command="$lightningcli_alias withdraw ${address} all slow"
elif [ ${LNTYPE} = "lnd" ];then
command="$lncli_alias sendcoins --sweepall --addr=${address} --conf_target=36"
fi