Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
106 stars 28 forks source link

Relai: Channel looks open but in fact was closed on chain a long ago #436

Open roeierez opened 2 months ago

roeierez commented 2 months ago

relai issue: https://github.com/breez/breez-sdk-relai/issues/24

Node ID: 03bca8282eb1193b70d50a63e2db922f252cdb2759000376f4de30e5b88f3df24f

Closing tx: https://blockstream.info/tx/e2d38d38b08f13c1cc555c5c898eb12ead3794730b1321ac565609d41575a593 Only the last output (which belongs to the lsp) was swept, the rest are not swept. This node has a pending payment and the channel returned on listfunds seems opened from the node perspective.

cdecker commented 2 months ago

This node is stuck on the closing transaction. We correctly detect the close, but then cannot use the signer to sign the commitment transaction to get us unstuck.

This could be related to #431. Do we have access to the signer logs? That'd corroborate what we're seeing.

roeierez commented 2 months ago

Unfortunately no.

JordiZDG commented 1 month ago

Any update?

cdecker commented 1 week ago

This appears to be an instance of #431. We addressed with a patch added on top of the v24.02gl1 version, cherry-picked from ElementsProject/lightning#7447, and guarded by manual opt-in.

I will use this node to test the patch, since the GL node did not own any funds on this channel, this will test just if we get unstuck correctly. We will then pick a node that had some outputs to sweep and test that separately.