1
- use metrics:: NoMetrics ;
2
1
use multisig:: Certificate ;
3
2
use std:: collections:: HashMap ;
4
3
use std:: iter:: once;
5
4
use std:: num:: NonZeroUsize ;
6
5
use std:: sync:: Arc ;
7
6
use std:: time:: Duration ;
8
- use timeboost:: builder:: Certifier ;
9
- use timeboost:: sequencer:: { Output , Sequencer } ;
7
+ use timeboost:: sequencer:: Output ;
10
8
use timeboost:: types:: { Block , BlockInfo } ;
11
9
use timeboost_utils:: types:: logging:: init_logging;
12
10
use tokio:: select;
@@ -17,7 +15,9 @@ use tokio_util::sync::CancellationToken;
17
15
use tokio_util:: task:: TaskTracker ;
18
16
use tracing:: { debug, error, info} ;
19
17
20
- use crate :: tests:: timeboost:: { Round2Block , hash} ;
18
+ use crate :: tests:: timeboost:: {
19
+ Round2Block , hash, start_certifier_with_retry, start_sequencer_with_retry,
20
+ } ;
21
21
22
22
use super :: { gen_bundles, make_configs} ;
23
23
@@ -49,8 +49,8 @@ async fn block_order() {
49
49
// delay start of a recovering node:
50
50
sleep ( Duration :: from_secs ( 5 ) ) . await
51
51
}
52
- let mut s = Sequencer :: new ( c , & NoMetrics ) . await . unwrap ( ) ;
53
- let mut p = Certifier :: new ( b , & NoMetrics ) . await . unwrap ( ) ;
52
+ let mut s = start_sequencer_with_retry ( c ) . await ;
53
+ let mut p = start_certifier_with_retry ( b ) . await ;
54
54
let mut r = None ;
55
55
let handle = p. handle ( ) ;
56
56
loop {
0 commit comments