Skip to content

Commit 77b6fd4

Browse files
committed
Provide counterparty parameters in accept channel checks
1 parent 70788e0 commit 77b6fd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
19961996
)));
19971997
};
19981998
self.context.channel_transaction_parameters.funding_outpoint = Some(outpoint);
1999-
self.context.holder_signer.as_mut().provide_channel_parameters(&self.context.channel_transaction_parameters);
1999+
self.context.holder_signer.as_mut().provide_funding_outpoint(&self.context.channel_transaction_parameters);
20002000

20012001
self.context.assert_no_commitment_advancement(transaction_number, "initial commitment_signed");
20022002
let commitment_signed = self.context.get_initial_commitment_signed(logger);
@@ -2903,6 +2903,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
29032903
selected_contest_delay: common_fields.to_self_delay,
29042904
pubkeys: counterparty_pubkeys,
29052905
});
2906+
self.holder_signer.as_mut().provide_counterparty_parameters(&self.channel_transaction_parameters);
29062907

29072908
self.counterparty_cur_commitment_point = Some(common_fields.first_per_commitment_point);
29082909
self.counterparty_shutdown_scriptpubkey = counterparty_shutdown_scriptpubkey;
@@ -8457,7 +8458,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
84578458
self.context.assert_no_commitment_advancement(self.unfunded_context.transaction_number(), "funding_created");
84588459

84598460
self.context.channel_transaction_parameters.funding_outpoint = Some(funding_txo);
8460-
self.context.holder_signer.as_mut().provide_channel_parameters(&self.context.channel_transaction_parameters);
8461+
self.context.holder_signer.as_mut().provide_funding_outpoint(&self.context.channel_transaction_parameters);
84618462

84628463
// Now that we're past error-generating stuff, update our local state:
84638464

0 commit comments

Comments
 (0)