Skip to content

Commit fe7b241

Browse files
committed
f fn rename
1 parent 5db6247 commit fe7b241

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
18061806
&self.default_configuration
18071807
}
18081808

1809-
fn create_insert_outbound_scid_alias(&self) -> u64 {
1809+
fn create_and_insert_outbound_scid_alias(&self) -> u64 {
18101810
let height = self.best_block.read().unwrap().height();
18111811
let mut outbound_scid_alias = 0;
18121812
let mut i = 0;
@@ -1860,7 +1860,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
18601860
let per_peer_state = self.per_peer_state.read().unwrap();
18611861
match per_peer_state.get(&their_network_key) {
18621862
Some(peer_state) => {
1863-
let outbound_scid_alias = self.create_insert_outbound_scid_alias();
1863+
let outbound_scid_alias = self.create_and_insert_outbound_scid_alias();
18641864
let peer_state = peer_state.lock().unwrap();
18651865
let their_features = &peer_state.latest_features;
18661866
let config = if override_config.is_some() { override_config.as_ref().unwrap() } else { &self.default_configuration };
@@ -4283,7 +4283,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
42834283
return Err(MsgHandleErrInternal::send_err_msg_no_close("No inbound channels accepted".to_owned(), msg.temporary_channel_id.clone()));
42844284
}
42854285

4286-
let outbound_scid_alias = self.create_insert_outbound_scid_alias();
4286+
let outbound_scid_alias = self.create_and_insert_outbound_scid_alias();
42874287
let mut channel = match Channel::new_from_req(&self.fee_estimator, &self.keys_manager,
42884288
counterparty_node_id.clone(), &their_features, msg, 0, &self.default_configuration,
42894289
self.best_block.read().unwrap().height(), &self.logger, outbound_scid_alias)

0 commit comments

Comments
 (0)