We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20b6809 commit 604762aCopy full SHA for 604762a
1 file changed
lightning/src/ln/channel.rs
@@ -10676,6 +10676,15 @@ where
10676
// TODO(splicing): check for quiescence
10677
10678
let our_funding_contribution = contribution.value();
10679
+ if our_funding_contribution == SignedAmount::ZERO {
10680
+ return Err(APIError::APIMisuseError {
10681
+ err: format!(
10682
+ "Channel {} cannot be spliced; contribution cannot be zero",
10683
+ self.context.channel_id(),
10684
+ ),
10685
+ });
10686
+ }
10687
+
10688
if our_funding_contribution > SignedAmount::MAX_MONEY {
10689
return Err(APIError::APIMisuseError {
10690
err: format!(
0 commit comments