We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d2770 commit 4f666a0Copy full SHA for 4f666a0
lightning/src/ln/channel.rs
@@ -11110,6 +11110,13 @@ where
11110
}
11111
11112
let their_funding_contribution = SignedAmount::from_sat(msg.funding_contribution_satoshis);
11113
+ if their_funding_contribution == SignedAmount::ZERO {
11114
+ return Err(ChannelError::WarnAndDisconnect(format!(
11115
+ "Channel {} cannot be spliced; they are the initiator, and their contribution is zero",
11116
+ self.context.channel_id(),
11117
+ )));
11118
+ }
11119
+
11120
self.validate_splice_contribution(their_funding_contribution)?;
11121
11122
// TODO(splicing): Check that channel balance does not go below the channel reserve
0 commit comments