@@ -968,7 +968,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
968
968
/// For lockorder enforcement purposes, we need to have a single site which constructs the
969
969
/// `inner` mutex, otherwise cases where we lock two monitors at the same time (eg in our
970
970
/// PartialEq implementation) we may decide a lockorder violation has occurred.
971
- fn construct_monitor ( imp : ChannelMonitorImpl < Signer > ) -> Self {
971
+ fn from_impl ( imp : ChannelMonitorImpl < Signer > ) -> Self {
972
972
ChannelMonitor { inner : Mutex :: new ( imp) }
973
973
}
974
974
@@ -1019,7 +1019,7 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1019
1019
let mut outputs_to_watch = HashMap :: new ( ) ;
1020
1020
outputs_to_watch. insert ( funding_info. 0 . txid , vec ! [ ( funding_info. 0 . index as u32 , funding_info. 1 . clone( ) ) ] ) ;
1021
1021
1022
- Self :: construct_monitor ( ChannelMonitorImpl {
1022
+ Self :: from_impl ( ChannelMonitorImpl {
1023
1023
latest_update_id : 0 ,
1024
1024
commitment_transaction_number_obscure_factor,
1025
1025
@@ -3366,7 +3366,7 @@ impl<'a, Signer: Sign, K: KeysInterface<Signer = Signer>> ReadableArgs<&'a K>
3366
3366
let mut secp_ctx = Secp256k1 :: new ( ) ;
3367
3367
secp_ctx. seeded_randomize ( & keys_manager. get_secure_random_bytes ( ) ) ;
3368
3368
3369
- Ok ( ( best_block. block_hash ( ) , ChannelMonitor :: construct_monitor ( ChannelMonitorImpl {
3369
+ Ok ( ( best_block. block_hash ( ) , ChannelMonitor :: from_impl ( ChannelMonitorImpl {
3370
3370
latest_update_id,
3371
3371
commitment_transaction_number_obscure_factor,
3372
3372
0 commit comments