Skip to content

Commit f58f08c

Browse files
committed
f error if no active signing session
1 parent 245dd11 commit f58f08c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7785,6 +7785,13 @@ where
77857785
debug_assert!(false, "We don't allow contributing inputs that are not spending P2WPKH, P2WSH, or P2TR");
77867786
return Err(APIError::APIMisuseError { err: format!("Input at index {input_idx} does not spend from one of P2WPKH, P2WSH, or P2TR") });
77877787
}
7788+
} else {
7789+
return Err(APIError::APIMisuseError {
7790+
err: format!(
7791+
"No active signing session for channel with ID {}",
7792+
self.context.channel_id
7793+
),
7794+
});
77887795
}
77897796
Ok(())
77907797
}

0 commit comments

Comments
 (0)