Skip to content

Commit ba6bd18

Browse files
committed
f - fix splicing_negotiated
1 parent f7e39f8 commit ba6bd18

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
@@ -8796,7 +8796,9 @@ where
87968796
let is_awaiting_remote_revoke = self.context.channel_state.is_awaiting_remote_revoke();
87978797
let next_counterparty_commitment_number = INITIAL_COMMITMENT_NUMBER - self.context.cur_counterparty_commitment_transaction_number + if is_awaiting_remote_revoke { 1 } else { 0 };
87988798

8799-
let splicing_negotiated = their_features.supports_splicing();
8799+
let our_features = channelmanager::provided_init_features(user_config);
8800+
let splicing_negotiated =
8801+
our_features.supports_splicing() && their_features.supports_splicing();
88008802
let channel_ready = if msg.next_local_commitment_number == 1 && INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.transaction_number() == 1 && !splicing_negotiated {
88018803
// We should never have to worry about MonitorUpdateInProgress resending ChannelReady
88028804
self.get_channel_ready(logger)

0 commit comments

Comments
 (0)