@@ -7,7 +7,7 @@ use bitcoin::{
77 absolute, constants, hashes:: Hash , key:: Secp256k1 , transaction, Amount , BlockHash , Network ,
88 OutPoint , ScriptBuf , Transaction , TxIn , TxOut ,
99} ;
10- use criterion:: { black_box , criterion_group, criterion_main, Criterion } ;
10+ use criterion:: { criterion_group, criterion_main, Criterion } ;
1111use miniscript:: { Descriptor , DescriptorPublicKey } ;
1212use std:: sync:: Arc ;
1313
@@ -126,7 +126,7 @@ fn run_filter_chain_unspents(tx_graph: &KeychainTxGraph, chain: &LocalChain, exp
126126
127127pub fn many_conflicting_unconfirmed ( c : & mut Criterion ) {
128128 const CONFLICTING_TX_COUNT : u32 = 2100 ;
129- let ( tx_graph, chain) = black_box ( setup ( |tx_graph, _chain| {
129+ let ( tx_graph, chain) = std :: hint :: black_box ( setup ( |tx_graph, _chain| {
130130 let previous_output = add_ancestor_tx ( tx_graph, tip_block_id ( ) , 0 ) ;
131131 // Create conflicting txs that spend from `previous_output`.
132132 let spk_1 = spk_at_index ( & tx_graph. index , 1 ) ;
@@ -164,7 +164,7 @@ pub fn many_conflicting_unconfirmed(c: &mut Criterion) {
164164
165165pub fn many_chained_unconfirmed ( c : & mut Criterion ) {
166166 const TX_CHAIN_COUNT : u32 = 2100 ;
167- let ( tx_graph, chain) = black_box ( setup ( |tx_graph, _chain| {
167+ let ( tx_graph, chain) = std :: hint :: black_box ( setup ( |tx_graph, _chain| {
168168 let mut previous_output = add_ancestor_tx ( tx_graph, tip_block_id ( ) , 0 ) ;
169169 // Create a chain of unconfirmed txs where each subsequent tx spends the output of the
170170 // previous one.
@@ -203,7 +203,7 @@ pub fn many_chained_unconfirmed(c: &mut Criterion) {
203203pub fn nested_conflicts ( c : & mut Criterion ) {
204204 const CONFLICTS_PER_OUTPUT : usize = 3 ;
205205 const GRAPH_DEPTH : usize = 7 ;
206- let ( tx_graph, chain) = black_box ( setup ( |tx_graph, _chain| {
206+ let ( tx_graph, chain) = std :: hint :: black_box ( setup ( |tx_graph, _chain| {
207207 let mut prev_ops = core:: iter:: once ( add_ancestor_tx ( tx_graph, tip_block_id ( ) , 0 ) )
208208 . collect :: < Vec < OutPoint > > ( ) ;
209209 for depth in 1 ..GRAPH_DEPTH {
0 commit comments