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.
splice_init
1 parent a206b4d commit 73a6d97Copy full SHA for 73a6d97
lightning/src/ln/channel.rs
@@ -11110,6 +11110,10 @@ where
11110
ES::Target: EntropySource,
11111
L::Target: Logger,
11112
{
11113
+ if !self.context.channel_state.is_quiescent() {
11114
+ return Err(ChannelError::WarnAndDisconnect("Quiescence needed to splice".to_owned()));
11115
+ }
11116
+
11117
let our_funding_contribution = SignedAmount::from_sat(our_funding_contribution_satoshis);
11118
let splice_funding = self.validate_splice_init(msg, our_funding_contribution)?;
11119
0 commit comments