Commit 5b6b4ce
committed
Properly provide
When a payment was sent and ultimately completed through an
on-chain HTLC claim which we discover during startup, we
deliberately break the payment tracking logic to keep it around
forever, declining to send a `PaymentPathSuccessful` event but
ensuring that we don't constantly replay the claim on every
startup.
However, now that we now have logic to complete a claim by marking
it as completed in a `ChannelMonitor` and not replaying information
about the claim on every startup. Thus, we no longer need to take
the conservative stance and can correctly replay claims now,
generating `PaymentPathSuccessful` events and allowing the state to
be removed.
Backport of ba6528f
Fixed conflicts in:
* lightning/src/ln/channelmanager.rs
* lightning/src/ln/payment_tests.rsPaymentPathSuccessful event for replay claims1 parent 77430bf commit 5b6b4ce
File tree
3 files changed
+32
-20
lines changed- lightning/src/ln
3 files changed
+32
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14153 | 14153 | | |
14154 | 14154 | | |
14155 | 14155 | | |
14156 | | - | |
14157 | | - | |
14158 | | - | |
14159 | | - | |
14160 | | - | |
14161 | | - | |
14162 | | - | |
14163 | | - | |
14164 | 14156 | | |
14165 | 14157 | | |
14166 | 14158 | | |
14167 | 14159 | | |
14168 | 14160 | | |
14169 | | - | |
| 14161 | + | |
14170 | 14162 | | |
14171 | 14163 | | |
14172 | 14164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3408 | 3408 | | |
3409 | 3409 | | |
3410 | 3410 | | |
3411 | | - | |
| 3411 | + | |
3412 | 3412 | | |
3413 | 3413 | | |
3414 | 3414 | | |
3415 | 3415 | | |
3416 | 3416 | | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
3417 | 3420 | | |
3418 | 3421 | | |
3419 | 3422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1168 | 1174 | | |
1169 | 1175 | | |
1170 | 1176 | | |
| |||
3516 | 3522 | | |
3517 | 3523 | | |
3518 | 3524 | | |
3519 | | - | |
3520 | | - | |
3521 | | - | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
3522 | 3539 | | |
3523 | 3540 | | |
3524 | 3541 | | |
| |||
0 commit comments