lightningdevkit / lightning-liquidity

Other
27 stars 17 forks source link

LSPS2: Emit event when fee has been collected for a channel #127

Closed johncantrell97 closed 5 months ago

johncantrell97 commented 7 months ago

Once PaymentForwarded has the skimmed_fee_msat parameter in LDK 123 we should add an event to notify the LSP server that the fee has been paid for a channel.

Otherwise, the LSP needs to duplicate this logic to decide when to broadcast the funding transaction if using client trusts lsp.

johncantrell97 commented 5 months ago

I think we can do this without an event and just return information from payment_forwarded event instead.