Commit 2c9f80b
committed
Gather to-decode HTLC fwds from channels on manager read
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.
Here we start this process by rebuilding
ChannelManager::decode_update_add_htlcs from the Channels, which will soon be
included in the ChannelMonitors as part of a different series of PRs.
The newly built map is not yet used but will be in the next commit.1 parent e8d0711 commit 2c9f80b
2 files changed
+58
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7773 | 7773 | | |
7774 | 7774 | | |
7775 | 7775 | | |
| 7776 | + | |
| 7777 | + | |
| 7778 | + | |
| 7779 | + | |
| 7780 | + | |
| 7781 | + | |
| 7782 | + | |
| 7783 | + | |
| 7784 | + | |
| 7785 | + | |
| 7786 | + | |
| 7787 | + | |
| 7788 | + | |
| 7789 | + | |
7776 | 7790 | | |
7777 | 7791 | | |
7778 | 7792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17353 | 17353 | | |
17354 | 17354 | | |
17355 | 17355 | | |
| 17356 | + | |
17356 | 17357 | | |
17357 | 17358 | | |
17358 | 17359 | | |
| |||
17664 | 17665 | | |
17665 | 17666 | | |
17666 | 17667 | | |
| 17668 | + | |
| 17669 | + | |
| 17670 | + | |
| 17671 | + | |
| 17672 | + | |
| 17673 | + | |
| 17674 | + | |
| 17675 | + | |
| 17676 | + | |
| 17677 | + | |
| 17678 | + | |
| 17679 | + | |
| 17680 | + | |
| 17681 | + | |
| 17682 | + | |
17667 | 17683 | | |
17668 | 17684 | | |
17669 | 17685 | | |
| |||
17725 | 17741 | | |
17726 | 17742 | | |
17727 | 17743 | | |
| 17744 | + | |
| 17745 | + | |
| 17746 | + | |
| 17747 | + | |
| 17748 | + | |
| 17749 | + | |
17728 | 17750 | | |
17729 | 17751 | | |
17730 | 17752 | | |
| |||
18215 | 18237 | | |
18216 | 18238 | | |
18217 | 18239 | | |
| 18240 | + | |
| 18241 | + | |
| 18242 | + | |
| 18243 | + | |
| 18244 | + | |
| 18245 | + | |
| 18246 | + | |
| 18247 | + | |
| 18248 | + | |
| 18249 | + | |
| 18250 | + | |
| 18251 | + | |
| 18252 | + | |
| 18253 | + | |
| 18254 | + | |
| 18255 | + | |
| 18256 | + | |
| 18257 | + | |
| 18258 | + | |
| 18259 | + | |
| 18260 | + | |
| 18261 | + | |
18218 | 18262 | | |
18219 | 18263 | | |
18220 | 18264 | | |
| |||
0 commit comments