mithril_aggregator/entities/
aggregator_epoch_settings.rs1use mithril_common::entities::{CardanoTransactionsSigningConfig, ProtocolParameters};
2
3#[derive(Clone, Debug, PartialEq)]
5pub struct AggregatorEpochSettings {
6 pub protocol_parameters: ProtocolParameters,
8
9 pub cardano_transactions_signing_config: CardanoTransactionsSigningConfig,
11}
12
13impl AggregatorEpochSettings {
14 #[cfg(test)]
15 pub fn dummy() -> AggregatorEpochSettings {
17 use mithril_common::test_utils::fake_data;
18
19 let protocol_parameters = fake_data::protocol_parameters();
20 let cardano_transactions_signing_config = CardanoTransactionsSigningConfig::dummy();
21
22 AggregatorEpochSettings {
24 protocol_parameters,
25 cardano_transactions_signing_config,
26 }
27 }
28}