Skip to content

Commit 53c9f09

Browse files
committed
f - fix splicing_negotiated
1 parent 32fa245 commit 53c9f09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8791,7 +8791,9 @@ where
87918791
let is_awaiting_remote_revoke = self.context.channel_state.is_awaiting_remote_revoke();
87928792
let next_counterparty_commitment_number = INITIAL_COMMITMENT_NUMBER - self.context.cur_counterparty_commitment_transaction_number + if is_awaiting_remote_revoke { 1 } else { 0 };
87938793

8794-
let splicing_negotiated = their_features.supports_splicing();
8794+
let our_features = channelmanager::provided_init_features(user_config);
8795+
let splicing_negotiated =
8796+
our_features.supports_splicing() && their_features.supports_splicing();
87958797
let channel_ready = if msg.next_local_commitment_number == 1 && INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.transaction_number() == 1 && !splicing_negotiated {
87968798
// We should never have to worry about MonitorUpdateInProgress resending ChannelReady
87978799
self.get_channel_ready(logger)

0 commit comments

Comments
 (0)