Skip to content

Commit 5920de8

Browse files
committed
Reject splice_inits when we aren't quiescent
1 parent b107741 commit 5920de8

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
@@ -11109,6 +11109,10 @@ where
1110911109
ES::Target: EntropySource,
1111011110
L::Target: Logger,
1111111111
{
11112+
if !self.context.channel_state.is_quiescent() {
11113+
return Err(ChannelError::WarnAndDisconnect("Quiescence needed to splice".to_owned()));
11114+
}
11115+
1111211116
let our_funding_contribution = SignedAmount::from_sat(our_funding_contribution_satoshis);
1111311117
let splice_funding = self.validate_splice_init(msg, our_funding_contribution)?;
1111411118

0 commit comments

Comments
 (0)