Commit ba6528f
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.PaymentPathSuccessful event for replay claims1 parent 226520b commit ba6528f
File tree
3 files changed
+23
-18
lines changed- lightning/src/ln
3 files changed
+23
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16714 | 16714 | | |
16715 | 16715 | | |
16716 | 16716 | | |
16717 | | - | |
16718 | | - | |
16719 | | - | |
16720 | | - | |
16721 | | - | |
16722 | | - | |
16723 | | - | |
16724 | | - | |
16725 | 16717 | | |
16726 | 16718 | | |
16727 | 16719 | | |
16728 | 16720 | | |
16729 | 16721 | | |
16730 | 16722 | | |
16731 | | - | |
| 16723 | + | |
16732 | 16724 | | |
16733 | 16725 | | |
16734 | 16726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3450 | 3450 | | |
3451 | 3451 | | |
3452 | 3452 | | |
3453 | | - | |
| 3453 | + | |
3454 | 3454 | | |
3455 | 3455 | | |
3456 | 3456 | | |
3457 | 3457 | | |
3458 | 3458 | | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
3459 | 3462 | | |
3460 | 3463 | | |
3461 | 3464 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
1389 | 1395 | | |
1390 | 1396 | | |
1391 | 1397 | | |
| |||
4130 | 4136 | | |
4131 | 4137 | | |
4132 | 4138 | | |
4133 | | - | |
| 4139 | + | |
4134 | 4140 | | |
4135 | 4141 | | |
4136 | 4142 | | |
| |||
4140 | 4146 | | |
4141 | 4147 | | |
4142 | 4148 | | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
4143 | 4153 | | |
4144 | 4154 | | |
4145 | 4155 | | |
| |||
0 commit comments