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 917ee4a commit b5cf08dCopy full SHA for b5cf08d
lightning/src/ln/channel.rs
@@ -11302,6 +11302,13 @@ where
11302
}
11303
11304
let their_funding_contribution = SignedAmount::from_sat(msg.funding_contribution_satoshis);
11305
+ if their_funding_contribution == SignedAmount::ZERO {
11306
+ return Err(ChannelError::WarnAndDisconnect(format!(
11307
+ "Channel {} cannot be spliced; they are the initiator, and their contribution is zero",
11308
+ self.context.channel_id(),
11309
+ )));
11310
+ }
11311
+
11312
self.validate_splice_contribution(their_funding_contribution)?;
11313
11314
// TODO(splicing): Check that channel balance does not go below the channel reserve
0 commit comments