Commit 2c52690
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 6a2421f commit 2c52690
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18462 | 18462 | | |
18463 | 18463 | | |
18464 | 18464 | | |
| 18465 | + | |
| 18466 | + | |
| 18467 | + | |
18465 | 18468 | | |
18466 | 18469 | | |
18467 | 18470 | | |
| |||
18495 | 18498 | | |
18496 | 18499 | | |
18497 | 18500 | | |
| 18501 | + | |
| 18502 | + | |
| 18503 | + | |
| 18504 | + | |
18498 | 18505 | | |
18499 | 18506 | | |
18500 | 18507 | | |
| |||
0 commit comments