Commit 759d7aa
committed
Dont use
`Channel::is_pre_funded_state` is used to mean several different
things. In this case, its used to skip all the `shutdown` logic as
the funding transaction can't possibly have been broadcasted so
there's really no ned to try to sign a transaction spending it.
Here, we really want to capture any channel in `NegotiatingFunding`
or any V1 channel in `FundingNegotiated` or, finally, any V2
channel in `FundingNegotiated` where we haven't yet sent our
signatures (which is not captured in `is_pre_funded_state`).
Instead of a new helper, we just check the states directly in
`shutdown` handling.is_pre_funded_state to short-circuit shutdown handling1 parent 1c36624 commit 759d7aa
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9304 | 9304 | | |
9305 | 9305 | | |
9306 | 9306 | | |
9307 | | - | |
| 9307 | + | |
| 9308 | + | |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
| 9314 | + | |
| 9315 | + | |
| 9316 | + | |
9308 | 9317 | | |
9309 | 9318 | | |
9310 | 9319 | | |
9311 | | - | |
9312 | | - | |
9313 | | - | |
| 9320 | + | |
9314 | 9321 | | |
9315 | 9322 | | |
9316 | 9323 | | |
| |||
0 commit comments