Skip to content

Commit 594eb83

Browse files
committed
f - their_features
1 parent 0ada61d commit 594eb83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,12 +1665,12 @@ where
16651665
/// send our peer to begin the channel reconnection process.
16661666
#[rustfmt::skip]
16671667
pub fn peer_connected_get_handshake<L: Deref>(
1668-
&mut self, chain_hash: ChainHash, features: &InitFeatures, logger: &L,
1668+
&mut self, chain_hash: ChainHash, their_features: &InitFeatures, logger: &L,
16691669
) -> ReconnectionMsg where L::Target: Logger {
16701670
match &mut self.phase {
16711671
ChannelPhase::Undefined => unreachable!(),
16721672
ChannelPhase::Funded(chan) =>
1673-
ReconnectionMsg::Reestablish(chan.get_channel_reestablish(features, logger)),
1673+
ReconnectionMsg::Reestablish(chan.get_channel_reestablish(their_features, logger)),
16741674
ChannelPhase::UnfundedOutboundV1(chan) => {
16751675
chan.get_open_channel(chain_hash, logger)
16761676
.map(|msg| ReconnectionMsg::Open(OpenChannelMessage::V1(msg)))
@@ -10176,7 +10176,7 @@ where
1017610176
/// self.remove_uncommitted_htlcs_and_mark_paused()'d
1017710177
#[rustfmt::skip]
1017810178
fn get_channel_reestablish<L: Deref>(
10179-
&mut self, features: &InitFeatures, logger: &L,
10179+
&mut self, their_features: &InitFeatures, logger: &L,
1018010180
) -> msgs::ChannelReestablish
1018110181
where
1018210182
L::Target: Logger,
@@ -10228,8 +10228,8 @@ where
1022810228
your_last_per_commitment_secret: remote_last_secret,
1022910229
my_current_per_commitment_point: dummy_pubkey,
1023010230
next_funding_txid: self.maybe_get_next_funding_txid(),
10231-
your_last_funding_locked_txid: self.maybe_get_your_last_funding_locked_txid(features),
10232-
my_current_funding_locked_txid: self.maybe_get_my_current_funding_locked_txid(features),
10231+
your_last_funding_locked_txid: self.maybe_get_your_last_funding_locked_txid(their_features),
10232+
my_current_funding_locked_txid: self.maybe_get_my_current_funding_locked_txid(their_features),
1023310233
}
1023410234
}
1023510235

0 commit comments

Comments
 (0)