akumaigorodski / wallet

Bitcoin wallet for Android
https://sbw.app
Apache License 2.0
240 stars 74 forks source link

Unable to send lightning payment #125

Closed secondl1ght closed 2 years ago

secondl1ght commented 2 years ago

Same as #124 but that issue was closed. I was aware of the fee and tried sending a lower amount, I tried sending 50 sats which should have enough room for the fee but the 'Ok' button is still disabled.

akumaigorodski commented 2 years ago

Can you share or create an invoice which is causing this?

secondl1ght commented 2 years ago

I figured out what the issue is after further testing:

If you scan an invoice for an amount over your spendable amount and then lower the sat amount to an amount that will work, the 'Ok' button still will be disabled even though you are now sending an acceptable amount. It is still using the disable button because the original invoice is over your limit.

If that makes sense?

akumaigorodski commented 2 years ago

It is still using the disable button because the original invoice is over your limit. If that makes sense?

Yes, it does. This is an expected behavior since a payment of amount which is lower than requested would be rejected by receiver anyway (according to LN protocol convention).

What will work here is SPLIT button which allows two or more wallets to pay to the same invoice in parts.

secondl1ght commented 2 years ago

Ok sounds good, I didn't know this was expected behavior. Thanks for letting me know, will close now.