@@ -5,7 +5,7 @@ use mithril_common::{entities::Epoch, test_utils::MithrilFixture, StdResult};
5
5
6
6
use crate :: {
7
7
stress_test:: { entities:: AggregatorParameters , fake_chain, fake_signer, wait} ,
8
- Aggregator ,
8
+ Aggregator , AggregatorConfig ,
9
9
} ;
10
10
11
11
/// Bootstrap an aggregator and make it compute its genesis certificate
@@ -15,15 +15,19 @@ pub async fn bootstrap_aggregator(
15
15
current_epoch : & mut Epoch ,
16
16
) -> StdResult < Aggregator > {
17
17
info ! ( ">> Launch Aggregator" ) ;
18
- let mut aggregator = Aggregator :: new (
19
- args. server_port as u64 ,
20
- & args. bft_node ,
21
- & args. cardano_cli_path ,
22
- & args. work_dir ,
23
- & args. bin_dir ,
24
- & args. mithril_era ,
25
- & [ ] ,
26
- )
18
+ let signed_entity_types = vec ! [ ] ;
19
+ let chain_observer_type = "cardano-cli" ;
20
+
21
+ let mut aggregator = Aggregator :: new ( & AggregatorConfig {
22
+ server_port : args. server_port as u64 ,
23
+ bft_node : & args. bft_node ,
24
+ cardano_cli_path : & args. cardano_cli_path ,
25
+ work_dir : & args. work_dir ,
26
+ bin_dir : & args. bin_dir ,
27
+ mithril_era : & args. mithril_era ,
28
+ signed_entity_types : & signed_entity_types,
29
+ chain_observer_type,
30
+ } )
27
31
. unwrap ( ) ;
28
32
29
33
fake_chain:: set_epoch ( & args. mock_epoch_file_path ( ) , * current_epoch) ;
0 commit comments