@@ -1806,7 +1806,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
1806
1806
& self . default_configuration
1807
1807
}
1808
1808
1809
- fn create_insert_outbound_scid_alias ( & self ) -> u64 {
1809
+ fn create_and_insert_outbound_scid_alias ( & self ) -> u64 {
1810
1810
let height = self . best_block . read ( ) . unwrap ( ) . height ( ) ;
1811
1811
let mut outbound_scid_alias = 0 ;
1812
1812
let mut i = 0 ;
@@ -1860,7 +1860,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
1860
1860
let per_peer_state = self . per_peer_state . read ( ) . unwrap ( ) ;
1861
1861
match per_peer_state. get ( & their_network_key) {
1862
1862
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 ( ) ;
1864
1864
let peer_state = peer_state. lock ( ) . unwrap ( ) ;
1865
1865
let their_features = & peer_state. latest_features ;
1866
1866
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
4283
4283
return Err ( MsgHandleErrInternal :: send_err_msg_no_close ( "No inbound channels accepted" . to_owned ( ) , msg. temporary_channel_id . clone ( ) ) ) ;
4284
4284
}
4285
4285
4286
- let outbound_scid_alias = self . create_insert_outbound_scid_alias ( ) ;
4286
+ let outbound_scid_alias = self . create_and_insert_outbound_scid_alias ( ) ;
4287
4287
let mut channel = match Channel :: new_from_req ( & self . fee_estimator , & self . keys_manager ,
4288
4288
counterparty_node_id. clone ( ) , & their_features, msg, 0 , & self . default_configuration ,
4289
4289
self . best_block . read ( ) . unwrap ( ) . height ( ) , & self . logger , outbound_scid_alias)
0 commit comments