get10101 / 10101

10101 (Ten-Ten-One): Self-custodial derivative trading at your fingertips.
https://10101.finance
MIT License
124 stars 21 forks source link

Set timed out hodl invoices to canceled #2589

Closed holzeis closed 1 month ago

holzeis commented 1 month ago

We generate a hodl invoice everytime the user gets to the fund channel screen. This invoice might not get paid an time out.

After the timeout the invoice will be automatically canceled and we get the canceled event.

At the moment that should set the invoice to failed, which is also not working because the hash is received in the wrong encoding.

https://github.com/get10101/10101/blob/main/coordinator/src/node/invoice.rs