Skip to content

Commit 10e579e

Browse files
committed
Reject splice_inits when we aren't quiescent
1 parent 4071e76 commit 10e579e

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
@@ -10821,6 +10821,10 @@ where
1082110821
ES::Target: EntropySource,
1082210822
L::Target: Logger,
1082310823
{
10824+
if !self.context.channel_state.is_quiescent() {
10825+
return Err(ChannelError::WarnAndDisconnect("Quiescence needed to splice".to_owned()));
10826+
}
10827+
1082410828
let splice_funding = self.validate_splice_init(msg, our_funding_contribution_satoshis)?;
1082510829

1082610830
log_info!(

0 commit comments

Comments
 (0)