Commit c7da01a
committed
Extract method to dedup pre-decode update_add
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.
We'll use this new util when reconstructing the
ChannelManager::decode_update_add_htlcs map from Channel data in upcoming
commits. While the Channel data is not included in the monitors yet, it will be
in future work.1 parent 8daa399 commit c7da01a
1 file changed
+37
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16819 | 16819 | | |
16820 | 16820 | | |
16821 | 16821 | | |
| 16822 | + | |
| 16823 | + | |
| 16824 | + | |
| 16825 | + | |
| 16826 | + | |
| 16827 | + | |
| 16828 | + | |
| 16829 | + | |
| 16830 | + | |
| 16831 | + | |
| 16832 | + | |
| 16833 | + | |
| 16834 | + | |
| 16835 | + | |
| 16836 | + | |
| 16837 | + | |
| 16838 | + | |
| 16839 | + | |
| 16840 | + | |
| 16841 | + | |
| 16842 | + | |
| 16843 | + | |
| 16844 | + | |
| 16845 | + | |
| 16846 | + | |
| 16847 | + | |
| 16848 | + | |
| 16849 | + | |
| 16850 | + | |
| 16851 | + | |
| 16852 | + | |
| 16853 | + | |
16822 | 16854 | | |
16823 | 16855 | | |
16824 | 16856 | | |
| |||
17686 | 17718 | | |
17687 | 17719 | | |
17688 | 17720 | | |
17689 | | - | |
17690 | | - | |
17691 | | - | |
17692 | | - | |
17693 | | - | |
17694 | | - | |
17695 | | - | |
17696 | | - | |
17697 | | - | |
17698 | | - | |
17699 | | - | |
17700 | | - | |
17701 | | - | |
| 17721 | + | |
| 17722 | + | |
| 17723 | + | |
| 17724 | + | |
| 17725 | + | |
17702 | 17726 | | |
17703 | 17727 | | |
17704 | 17728 | | |
| |||
0 commit comments