rust-lightning/lightning/src
Matt Corallo 4c9231371b Expose a Balance for inbound HTLCs even without a preimage
If we don't currently have the preimage for an inbound HTLC, that
does not guarantee we can never claim it, but instead only that we
cannot claim it unless we receive the preimage from the channel we
forwarded the channel out on.

Thus, we cannot consider a channel to have no claimable balances if
the only remaining output on the commitment ransaction is an
inbound HTLC for which we do not have the preimage, as we may be
able to claim it in the future.

This commit addresses this issue by adding a new `Balance` variant
- `MaybePreimageClaimableHTLCAwaitingTimeout`, which is generated
until the HTLC output is spent.

Fixes #1620
2022-08-25 18:51:42 +00:00
..
chain Expose a Balance for inbound HTLCs even without a preimage 2022-08-25 18:51:42 +00:00
ln Expose a Balance for inbound HTLCs even without a preimage 2022-08-25 18:51:42 +00:00
onion_message Fuzz test onion messages 2022-08-16 12:12:10 -04:00
routing Merge pull request #1666 from TheBlueMatt/2022-08-fix-script-check 2022-08-17 19:34:26 +00:00
util Merge pull request #1648 from valentinewallace/2022-08-fuzz-onion-msgs 2022-08-17 15:48:29 -04:00
debug_sync.rs Fix new compilation warnings in debug_sync module 2022-07-26 20:29:36 +00:00
lib.rs Fuzz test onion messages 2022-08-16 12:12:10 -04:00
sync.rs Create a simple FairRwLock to avoid readers starving writers 2022-05-10 23:40:20 +00:00