Commit 3f9ca25
committed
ln: handle trampoline claims on restart
This commit uses the existing outbound payment claims replay logic
to restore trampoline claims. If any single previous hop in a htlc
source with multiple previous hops requires claim, we represent this
with a single outbound claimed htlc because we assume that *all* of
the incoming htlcs are represented in the source, and will be
appropriately claimed (rather than submitting multiple claims, which
will end up being duplicates of each other). This is the case for
trampoline payments, where the htlc_source stores all previous hops.1 parent c010889 commit 3f9ca25
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19514 | 19514 | | |
19515 | 19515 | | |
19516 | 19516 | | |
| 19517 | + | |
| 19518 | + | |
| 19519 | + | |
19517 | 19520 | | |
19518 | 19521 | | |
19519 | 19522 | | |
| |||
0 commit comments