Commit 0ece3d6
committed
Ack monitor events if CommitmentSecret was blocked
If we stored a monitor event id with a pending inbound HTLC and that HTLC is
about to be fully removed from the channel via revoke_and_ack, we should ack
the monitor event corresponding to that id when the monitor update associated
with the RAA is complete.
We do this so the monitor event will keep being re-provided to us on startup
until the HTLC is removed, to ensure the HTLC gets resolved even if we lose the
holding cell.1 parent f73aa93 commit 0ece3d6
2 files changed
Lines changed: 30 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1483 | 1490 | | |
1484 | 1491 | | |
1485 | 1492 | | |
1486 | 1493 | | |
| 1494 | + | |
1487 | 1495 | | |
1488 | 1496 | | |
1489 | 1497 | | |
| |||
7707 | 7715 | | |
7708 | 7716 | | |
7709 | 7717 | | |
7710 | | - | |
| 7718 | + | |
7711 | 7719 | | |
7712 | 7720 | | |
7713 | 7721 | | |
| |||
9250 | 9258 | | |
9251 | 9259 | | |
9252 | 9260 | | |
9253 | | - | |
9254 | | - | |
9255 | | - | |
| 9261 | + | |
| 9262 | + | |
| 9263 | + | |
| 9264 | + | |
9256 | 9265 | | |
9257 | 9266 | | |
9258 | 9267 | | |
| |||
11347 | 11356 | | |
11348 | 11357 | | |
11349 | 11358 | | |
11350 | | - | |
| 11359 | + | |
| 11360 | + | |
| 11361 | + | |
11351 | 11362 | | |
11352 | 11363 | | |
11353 | 11364 | | |
11354 | | - | |
11355 | | - | |
11356 | | - | |
11357 | | - | |
| 11365 | + | |
| 11366 | + | |
| 11367 | + | |
11358 | 11368 | | |
11359 | 11369 | | |
11360 | 11370 | | |
| |||
11364 | 11374 | | |
11365 | 11375 | | |
11366 | 11376 | | |
11367 | | - | |
11368 | | - | |
11369 | | - | |
| 11377 | + | |
11370 | 11378 | | |
11371 | 11379 | | |
11372 | 11380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15372 | 15372 | | |
15373 | 15373 | | |
15374 | 15374 | | |
15375 | | - | |
| 15375 | + | |
15376 | 15376 | | |
15377 | 15377 | | |
| 15378 | + | |
| 15379 | + | |
| 15380 | + | |
| 15381 | + | |
| 15382 | + | |
| 15383 | + | |
| 15384 | + | |
| 15385 | + | |
| 15386 | + | |
15378 | 15387 | | |
15379 | 15388 | | |
15380 | 15389 | | |
| |||
0 commit comments