Skip to content

Commit d7f0ffc

Browse files
committed
Reject splice_inits when we aren't quiescent
1 parent a460d4d commit d7f0ffc

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
@@ -10841,6 +10841,10 @@ where
1084110841
ES::Target: EntropySource,
1084210842
L::Target: Logger,
1084310843
{
10844+
if !self.context.channel_state.is_quiescent() {
10845+
return Err(ChannelError::WarnAndDisconnect("Quiescence needed to splice".to_owned()));
10846+
}
10847+
1084410848
let splice_funding = self.validate_splice_init(msg, our_funding_contribution_satoshis)?;
1084510849

1084610850
log_info!(

0 commit comments

Comments
 (0)