Commit 48a0862
committed
Enter FundingNegotiated state after constructing funding tx
The ChannelState::NegotiatingFunding assertion check in
ChannelContext::get_initial_commitment_signed will fail when
implementing splicing's channel_reestablish logic. In order to support
it and channel establishment, enter ChannelState::FundingNegotiated
prior to calling the method and update the assertion accordingly.
Also allows writing a channel in the FundedNegotiated state when an
interactive signing session is active. This is necessary as it indicates
a previously funded channel being spliced.1 parent 61e5819 commit 48a0862
2 files changed
+6
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5517 | 5517 | | |
5518 | 5518 | | |
5519 | 5519 | | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
5520 | 5523 | | |
5521 | 5524 | | |
5522 | 5525 | | |
| |||
5580 | 5583 | | |
5581 | 5584 | | |
5582 | 5585 | | |
5583 | | - | |
5584 | | - | |
5585 | | - | |
5586 | | - | |
5587 | 5586 | | |
5588 | 5587 | | |
5589 | 5588 | | |
| |||
5636 | 5635 | | |
5637 | 5636 | | |
5638 | 5637 | | |
5639 | | - | |
5640 | | - | |
5641 | | - | |
5642 | | - | |
5643 | | - | |
5644 | | - | |
5645 | | - | |
5646 | | - | |
5647 | | - | |
5648 | | - | |
| 5638 | + | |
5649 | 5639 | | |
5650 | 5640 | | |
5651 | 5641 | | |
| |||
12880 | 12870 | | |
12881 | 12871 | | |
12882 | 12872 | | |
| 12873 | + | |
12883 | 12874 | | |
12884 | 12875 | | |
12885 | 12876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 277 | + | |
300 | 278 | | |
301 | 279 | | |
302 | 280 | | |
| |||
0 commit comments