Skip to content

Commit 209300e

Browse files
committed
Use Chain Observer type in aggregator stress test
1 parent 7660327 commit 209300e

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

mithril-test-lab/mithril-end-to-end/src/stress_test/aggregator_helpers.rs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use mithril_common::{entities::Epoch, test_utils::MithrilFixture, StdResult};
55

66
use crate::{
77
stress_test::{entities::AggregatorParameters, fake_chain, fake_signer, wait},
8-
Aggregator,
8+
Aggregator, AggregatorConfig,
99
};
1010

1111
/// Bootstrap an aggregator and make it compute its genesis certificate
@@ -15,15 +15,19 @@ pub async fn bootstrap_aggregator(
1515
current_epoch: &mut Epoch,
1616
) -> StdResult<Aggregator> {
1717
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+
})
2731
.unwrap();
2832

2933
fake_chain::set_epoch(&args.mock_epoch_file_path(), *current_epoch);

0 commit comments

Comments
 (0)