Commit 2ada93e
committed
Extract util for HTLCIntercepted event creation
We have an overarching goal of (mostly) getting rid of ChannelManager
persistence and rebuilding the ChannelManager's state from existing
ChannelMonitors, due to issues when the two structs are out-of-sync on restart.
The main issue that can arise is channel force closure.
As part of rebuilding ChannelManager forward HTLCs maps, we will also add
a fix that will regenerate HTLCIntercepted events for HTLC intercepts that
are present but have no corresponding event in the queue. That fix will use
this new method.1 parent a809475 commit 2ada93e
1 file changed
+28
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3911 | 3911 | | |
3912 | 3912 | | |
3913 | 3913 | | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
3914 | 3933 | | |
3915 | 3934 | | |
3916 | 3935 | | |
| |||
11486 | 11505 | | |
11487 | 11506 | | |
11488 | 11507 | | |
11489 | | - | |
11490 | | - | |
11491 | | - | |
11492 | | - | |
11493 | | - | |
11494 | | - | |
11495 | | - | |
11496 | | - | |
11497 | | - | |
11498 | | - | |
11499 | | - | |
11500 | | - | |
11501 | | - | |
11502 | | - | |
11503 | | - | |
11504 | | - | |
| 11508 | + | |
| 11509 | + | |
| 11510 | + | |
| 11511 | + | |
| 11512 | + | |
| 11513 | + | |
| 11514 | + | |
| 11515 | + | |
| 11516 | + | |
11505 | 11517 | | |
11506 | 11518 | | |
11507 | 11519 | | |
| |||
0 commit comments