Skip to content

Commit 73a6d97

Browse files
committed
Reject splice_inits when we aren't quiescent
1 parent a206b4d commit 73a6d97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11110,6 +11110,10 @@ where
1111011110
ES::Target: EntropySource,
1111111111
L::Target: Logger,
1111211112
{
11113+
if !self.context.channel_state.is_quiescent() {
11114+
return Err(ChannelError::WarnAndDisconnect("Quiescence needed to splice".to_owned()));
11115+
}
11116+
1111311117
let our_funding_contribution = SignedAmount::from_sat(our_funding_contribution_satoshis);
1111411118
let splice_funding = self.validate_splice_init(msg, our_funding_contribution)?;
1111511119

0 commit comments

Comments
 (0)