Skip to content

Commit

Permalink
temp: debug ln-send
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Dec 20, 2023
1 parent d30e6ff commit 2d4049c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bats/core/api/ln-send.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ setup_file() {
create_user 'lnd_funding'
fund_user_lightning 'lnd_funding' 'lnd_funding.btc_wallet_id' '5000000'
fi
lnd1_balance=$(lnd_cli channelbalance | jq -r '.balance')
echo "HERE 0: $lnd1_balance" >> "$TILT_LOG_FILE"
echo "HERE 0: $lnd1_balance"

create_user "$ALICE"
user_update_username "$ALICE"
Expand Down Expand Up @@ -55,6 +58,10 @@ usd_amount=50

exec_graphql "$token_name" 'ln-invoice-fee-probe' "$variables"
fee_amount="$(graphql_output '.data.lnInvoiceFeeProbe.amount')"
echo "HERE 1: $output"
echo "HERE 1: $output" >> "$TILT_LOG_FILE"
echo "HERE 2: $fee_amount"
echo "HERE 2: $fee_amount" >> "$TILT_LOG_FILE"
[[ "${fee_amount}" = "0" ]] || exit 1

exec_graphql "$token_name" 'ln-invoice-payment-send' "$variables"
Expand Down

0 comments on commit 2d4049c

Please sign in to comment.