Commit 57e774c
committed
Track ChannelTransactionParameters in ChannelMonitor
The `ChannelMonitor` and `OnchainTxHandler` have historically been tied
together, often tracking some of the same state twice. As we introduce
support for splices in the `ChannelMonitor`, we'd like to avoid leaking
some of those details to the `OnchainTxHandler`. Ultimately, the
`OnchainTxHandler` should stand on its own and support claiming funds
from multiple `ChannelMonitor`s, allowing us to save on fees by batching
aggregatable claims across multiple in-flight closing channels.
This commit tracks the `ChannelTransactionParameters` for the current
`FundingScope` of a `ChannelMonitor` and deprecates the one found in
`OnchainTxHandler`.1 parent 6e49c91 commit 57e774c
File tree
3 files changed
+15
-10
lines changed- lightning/src/chain
3 files changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
| 1401 | + | |
1401 | 1402 | | |
1402 | 1403 | | |
1403 | 1404 | | |
| |||
5278 | 5279 | | |
5279 | 5280 | | |
5280 | 5281 | | |
| 5282 | + | |
5281 | 5283 | | |
5282 | 5284 | | |
5283 | 5285 | | |
| |||
5294 | 5296 | | |
5295 | 5297 | | |
5296 | 5298 | | |
| 5299 | + | |
5297 | 5300 | | |
5298 | 5301 | | |
5299 | 5302 | | |
| |||
5322 | 5325 | | |
5323 | 5326 | | |
5324 | 5327 | | |
5325 | | - | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
5326 | 5331 | | |
5327 | 5332 | | |
5328 | 5333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
| 222 | + | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | | - | |
| 229 | + | |
231 | 230 | | |
232 | 231 | | |
233 | 232 | | |
| |||
676 | 675 | | |
677 | 676 | | |
678 | 677 | | |
679 | | - | |
| 678 | + | |
680 | 679 | | |
681 | 680 | | |
682 | 681 | | |
| |||
1203 | 1202 | | |
1204 | 1203 | | |
1205 | 1204 | | |
1206 | | - | |
1207 | | - | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
791 | | - | |
| 791 | + | |
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
| |||
0 commit comments