Commit d97a168
committed
Run monitor update completion actions for pre-startup completion
If a `ChannelMonitorUpdate` completes being persisted, but the
`ChannelManager` isn't informed thereof (or isn't persisted) before
shutdown, on startup we may still have it listed as in-flight. When
we compare the available `ChannelMonitor` with the in-flight set,
we'll notice it completed and remove it, however this may leave
some post-update actions dangling which need to complete.
Here we handle this with a new `BackgroundEvent` indicating we need
to handle any post-update action(s) for a given channel.1 parent 9409377 commit d97a168
File tree
2 files changed
+40
-3
lines changed- lightning/src/ln
2 files changed
+40
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| 2349 | + | |
2349 | 2350 | | |
2350 | 2351 | | |
2351 | 2352 | | |
| |||
2365 | 2366 | | |
2366 | 2367 | | |
2367 | 2368 | | |
2368 | | - | |
2369 | 2369 | | |
| 2370 | + | |
| 2371 | + | |
2370 | 2372 | | |
2371 | 2373 | | |
2372 | 2374 | | |
| |||
2407 | 2409 | | |
2408 | 2410 | | |
2409 | 2411 | | |
2410 | | - | |
2411 | | - | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
2412 | 2418 | | |
2413 | 2419 | | |
2414 | 2420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
533 | 540 | | |
534 | 541 | | |
535 | 542 | | |
| |||
4143 | 4150 | | |
4144 | 4151 | | |
4145 | 4152 | | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
4146 | 4167 | | |
4147 | 4168 | | |
4148 | 4169 | | |
| |||
8454 | 8475 | | |
8455 | 8476 | | |
8456 | 8477 | | |
| 8478 | + | |
| 8479 | + | |
| 8480 | + | |
| 8481 | + | |
| 8482 | + | |
| 8483 | + | |
| 8484 | + | |
| 8485 | + | |
| 8486 | + | |
| 8487 | + | |
8457 | 8488 | | |
8458 | 8489 | | |
8459 | 8490 | | |
| |||
0 commit comments