Commit b0c312d
Attempt to unblock blocked monitor updates on startup
When we make an MPP claim we push RAA blockers for each chanel to
ensure we don't allow any single channel to make too much progress
until all channels have the preimage durably on disk. We don't have
to store those RAA blockers on disk in the ChannelManager as
there's no point - if the ChannelManager gets to disk with the RAA
blockers it also brought with it the pending ChannelMonitorUpdates
that contain the preimages and will now be replayed, ensuring the
preimage makes it to all ChannelMonitors.
However, just because those RAA blockers dissapear on reload
doesn't mean the implications of them does too - if a later
ChannelMonitorUpdate was blocked in the channel we don't have logic
to unblock it on startup.
Here we add such logic, simply attempting to unblock all blocked
`ChannelMonitorUpdate`s that existed on startup.
Code written by Claude.
Fixes #45181 parent 416dfad commit b0c312d
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1476 | 1481 | | |
1477 | 1482 | | |
1478 | 1483 | | |
| |||
8795 | 8800 | | |
8796 | 8801 | | |
8797 | 8802 | | |
| 8803 | + | |
| 8804 | + | |
| 8805 | + | |
| 8806 | + | |
| 8807 | + | |
| 8808 | + | |
8798 | 8809 | | |
8799 | 8810 | | |
8800 | 8811 | | |
| |||
9751 | 9762 | | |
9752 | 9763 | | |
9753 | 9764 | | |
| 9765 | + | |
9754 | 9766 | | |
9755 | 9767 | | |
9756 | 9768 | | |
| |||
19456 | 19468 | | |
19457 | 19469 | | |
19458 | 19470 | | |
| 19471 | + | |
| 19472 | + | |
| 19473 | + | |
| 19474 | + | |
| 19475 | + | |
| 19476 | + | |
| 19477 | + | |
| 19478 | + | |
19459 | 19479 | | |
19460 | 19480 | | |
19461 | 19481 | | |
| |||
0 commit comments