@@ -44,9 +44,8 @@ use util::scid_utils::scid_from_parts;
4444use prelude:: * ;
4545use core:: { cmp, mem, fmt} ;
4646use core:: ops:: Deref ;
47- #[ cfg( any( test, feature = "fuzztarget" ) ) ]
47+ #[ cfg( any( test, feature = "fuzztarget" , debug_assertions ) ) ]
4848use sync:: Mutex ;
49- use sync;
5049use bitcoin:: hashes:: hex:: ToHex ;
5150use bitcoin:: blockdata:: opcodes:: all:: OP_PUSHBYTES_0 ;
5251
@@ -375,10 +374,10 @@ pub(super) struct Channel<Signer: Sign> {
375374
376375 #[ cfg( debug_assertions) ]
377376 /// Max to_local and to_remote outputs in a locally-generated commitment transaction
378- holder_max_commitment_tx_output : sync :: Mutex < ( u64 , u64 ) > ,
377+ holder_max_commitment_tx_output : Mutex < ( u64 , u64 ) > ,
379378 #[ cfg( debug_assertions) ]
380379 /// Max to_local and to_remote outputs in a remote-generated commitment transaction
381- counterparty_max_commitment_tx_output : sync :: Mutex < ( u64 , u64 ) > ,
380+ counterparty_max_commitment_tx_output : Mutex < ( u64 , u64 ) > ,
382381
383382 last_sent_closing_fee : Option < ( u32 , u64 , Signature ) > , // (feerate, fee, holder_sig)
384383
@@ -596,9 +595,9 @@ impl<Signer: Sign> Channel<Signer> {
596595 monitor_pending_failures : Vec :: new ( ) ,
597596
598597 #[ cfg( debug_assertions) ]
599- holder_max_commitment_tx_output : sync :: Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
598+ holder_max_commitment_tx_output : Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
600599 #[ cfg( debug_assertions) ]
601- counterparty_max_commitment_tx_output : sync :: Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
600+ counterparty_max_commitment_tx_output : Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
602601
603602 last_sent_closing_fee : None ,
604603
@@ -837,9 +836,9 @@ impl<Signer: Sign> Channel<Signer> {
837836 monitor_pending_failures : Vec :: new ( ) ,
838837
839838 #[ cfg( debug_assertions) ]
840- holder_max_commitment_tx_output : sync :: Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
839+ holder_max_commitment_tx_output : Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
841840 #[ cfg( debug_assertions) ]
842- counterparty_max_commitment_tx_output : sync :: Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
841+ counterparty_max_commitment_tx_output : Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
843842
844843 last_sent_closing_fee : None ,
845844
@@ -4944,9 +4943,9 @@ impl<'a, Signer: Sign, K: Deref> ReadableArgs<&'a K> for Channel<Signer>
49444943 feerate_per_kw,
49454944
49464945 #[ cfg( debug_assertions) ]
4947- holder_max_commitment_tx_output : sync :: Mutex :: new ( ( 0 , 0 ) ) ,
4946+ holder_max_commitment_tx_output : Mutex :: new ( ( 0 , 0 ) ) ,
49484947 #[ cfg( debug_assertions) ]
4949- counterparty_max_commitment_tx_output : sync :: Mutex :: new ( ( 0 , 0 ) ) ,
4948+ counterparty_max_commitment_tx_output : Mutex :: new ( ( 0 , 0 ) ) ,
49504949
49514950 last_sent_closing_fee,
49524951
0 commit comments