File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Still missing tons of error-handling. See GitHub issues for suggested projects i
12
12
13
13
[features ]
14
14
fuzztarget = [" bitcoin/fuzztarget" ]
15
+ test_utils = []
16
+ # Internal test utilities exposed to other repo crates
15
17
_test_utils = [" hex" , " regex" ]
16
18
# Unlog messages superior at targeted level.
17
19
max_level_off = []
Original file line number Diff line number Diff line change @@ -910,7 +910,7 @@ impl CommitmentTransaction {
910
910
}
911
911
}
912
912
913
- #[ cfg( feature = "_test_utils " ) ]
913
+ #[ cfg( feature = "test_utils " ) ]
914
914
/// Get the transaction output scripts.
915
915
///
916
916
/// For debugging purposes, since only the hash is present in the actual transaction.
@@ -1007,17 +1007,17 @@ impl CommitmentTransaction {
1007
1007
} ) ;
1008
1008
1009
1009
let mut outputs = Vec :: with_capacity ( txouts. len ( ) ) ;
1010
- #[ cfg( feature = "_test_utils " ) ]
1010
+ #[ cfg( feature = "test_utils " ) ]
1011
1011
let mut scripts = Vec :: new ( ) ;
1012
- #[ cfg( not( feature = "_test_utils " ) ) ]
1012
+ #[ cfg( not( feature = "test_utils " ) ) ]
1013
1013
let scripts = Vec :: new ( ) ;
1014
1014
for ( idx, out) in txouts. drain ( ..) . enumerate ( ) {
1015
1015
if let Some ( htlc) = ( out. 1 ) . 1 {
1016
1016
htlc. transaction_output_index = Some ( idx as u32 ) ;
1017
1017
htlcs. push ( htlc. clone ( ) ) ;
1018
1018
}
1019
1019
outputs. push ( out. 0 ) ;
1020
- #[ cfg( feature = "_test_utils " ) ]
1020
+ #[ cfg( feature = "test_utils " ) ]
1021
1021
scripts. push ( ( out. 1 ) . 0 ) ;
1022
1022
}
1023
1023
Ok ( ( outputs, htlcs, scripts) )
You can’t perform that action at this time.
0 commit comments