Commit 3c2da41
committed
Move monitor<>outbound_payments startup htlc syncing code.
Move the code that ensures that HTLCs locked into ChannelMonitors are
synchronized with the ChannelManager's OutboundPayments store to the
outbound_payments module.
This is useful both because ChannelManager::read is very long/confusing method,
so it's nice to encapsulate some of its functionality, and because we need to
fix an existing bug in this logic where we may risk double-paying an offer due
to outbound_payments being stale on startup. See the next commit for this
bugfix.1 parent 8c356d8 commit 3c2da41
2 files changed
+39
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
12569 | 12569 | | |
12570 | 12570 | | |
12571 | 12571 | | |
12572 | | - | |
12573 | 12572 | | |
12574 | 12573 | | |
12575 | | - | |
12576 | | - | |
12577 | | - | |
12578 | | - | |
12579 | | - | |
12580 | | - | |
12581 | | - | |
12582 | | - | |
12583 | | - | |
12584 | | - | |
12585 | | - | |
12586 | | - | |
12587 | | - | |
12588 | | - | |
12589 | | - | |
12590 | | - | |
12591 | | - | |
12592 | | - | |
12593 | | - | |
12594 | | - | |
12595 | | - | |
12596 | | - | |
12597 | | - | |
12598 | | - | |
12599 | | - | |
12600 | | - | |
12601 | | - | |
12602 | | - | |
| 12574 | + | |
| 12575 | + | |
| 12576 | + | |
12603 | 12577 | | |
12604 | 12578 | | |
12605 | 12579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2121 | 2121 | | |
2122 | 2122 | | |
2123 | 2123 | | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
2124 | 2159 | | |
2125 | 2160 | | |
2126 | 2161 | | |
| |||
0 commit comments