Commit fd4a5cc
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 aeddf0f commit fd4a5cc
1 file changed
+32
-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 | + | |
16822 | 16849 | | |
16823 | 16850 | | |
16824 | 16851 | | |
| |||
17686 | 17713 | | |
17687 | 17714 | | |
17688 | 17715 | | |
17689 | | - | |
17690 | | - | |
17691 | | - | |
17692 | | - | |
17693 | | - | |
17694 | | - | |
17695 | | - | |
17696 | | - | |
17697 | | - | |
17698 | | - | |
17699 | | - | |
17700 | | - | |
17701 | | - | |
| 17716 | + | |
| 17717 | + | |
| 17718 | + | |
| 17719 | + | |
| 17720 | + | |
17702 | 17721 | | |
17703 | 17722 | | |
17704 | 17723 | | |
| |||
0 commit comments