Add missing routes to api.properties and 'all' prop to ln_withdraw

This commit is contained in:
g-homebase
2020-04-17 13:50:45 -04:00
committed by kexkey
parent 426707e3dd
commit d677595b5f
3 changed files with 9 additions and 1 deletions

View File

@@ -515,6 +515,10 @@ ln_withdraw() {
local destination=$(echo "${request}" | jq -r ".destination")
local satoshi=$(echo "${request}" | jq -r ".satoshi")
local feerate=$(echo "${request}" | jq -r ".feerate")
local all=$(echo "${request}" | jq -r ".all")
if [ "${all}" == true ] || [ "${all}" == "true" ] ; then
satoshi="all"
fi
result=$(./lightning-cli withdraw ${destination} ${satoshi} ${feerate})
returncode=$?
trace_rc ${returncode}