File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -6984,10 +6984,12 @@ where
6984
6984
.and_then(|funding_negotiation| funding_negotiation.as_funding())
6985
6985
.expect("Funding must exist for negotiated pending splice");
6986
6986
let transaction_number = self.holder_commitment_point.current_transaction_number();
6987
- let commitment_point = self
6988
- .holder_commitment_point
6989
- .current_point()
6990
- .expect("current should be set after receiving the initial commitment_signed");
6987
+ let commitment_point = self.holder_commitment_point.current_point().ok_or_else(|| {
6988
+ debug_assert!(false);
6989
+ ChannelError::close(
6990
+ "current_point should be set for channels initiating splicing".to_owned(),
6991
+ )
6992
+ })?;
6991
6993
let (holder_commitment_tx, _) = self.context.validate_commitment_signed(
6992
6994
pending_splice_funding,
6993
6995
transaction_number,
You can’t perform that action at this time.
0 commit comments