ZeusLN / zeus

A mobile Bitcoin wallet fit for the gods. ⚡️ Est. 563345
https://ZeusLN.com
Other
897 stars 139 forks source link

Paying from Embedded node to a ZeusPay address in the same app on another wallet trigger force close #2153

Open ElucGeek opened 2 months ago

ElucGeek commented 2 months ago

Describe the bug

Hello, I have a LND rest node connected in Zeus with a zeuspay.com lightning address. In the same app I have an embedded LND node. I tried to send money from the embedded node to my Zeuspay address. I got the warning that I must open regularly. When the payment was done, I switch to the node with the Zeuspay, nothing incoming. I switch back to the Embedded node, nothing special. I try to make another payement with the Embedded node to test if everything is fine (donate to Zeus BTCPay server) then I was stuck with "LND is getting ready to make payment". After some back and forth between the node to try to figure out I saw that my channel was in force close on the embedded node... This all literally happens withing minutes, not after 24h. What did I do wrong? Is there any way to never automatically trigger a force close and only manually approve them? Regards

Reproduce

Connect to an external node. Create Zeuspay lightning address for the node/wallet. Create an embedded node. Open a channel with LSP. Send mone to the Zeuspay address. Open the external node in Zeus to redeem the payment. Nothing to redeem, the embedded node channel get force closed.

ZEUS version

v0.8.4

Node interface

Embedded LND

Network

Clearnet

Device

Pixel 7

Device operating system

Android 14

Log output

No response

kaloudis commented 2 months ago

It's not advised to pay ZEUS Pay invoices - or hodl invoices in general - with the embedded node, unless running it in persistent mode on Android. If the payment settles or fails while you're offline, the channel will force close.