File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
internal/mithril-protocol-config/src Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1- //! Interface definition for Mithril Protocol Configuration.
1+ //! Interface definition for Mithril Protocol Configuration provider .
22
33use async_trait:: async_trait;
44use mithril_common:: StdResult ;
Original file line number Diff line number Diff line change 11#![ warn( missing_docs) ]
2- //! This crate provides functionality for interacting with Mithril Network
2+ //! This crate provides mechanisms to read and check the configuration parameters of a Mithril network.
33
44mod aggregator_client;
55/// HTTP client Implementation for interacting with Mithril Network.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use mithril_common::entities::{
88
99#[ derive( PartialEq , Clone , Debug ) ]
1010
11- /// Custom configuration for a signed entity type
11+ /// Custom configuration for the signed entity types
1212pub struct SignedEntityTypeConfiguration {
1313 /// Cardano Transactions
1414 pub cardano_transactions : Option < CardanoTransactionsSigningConfig > ,
Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ impl Dummy for MithrilNetworkConfiguration {
1212 fn dummy ( ) -> Self {
1313 let beacon = fake_data:: beacon ( ) ;
1414 let signer_registration_protocol_parameters = fake_data:: protocol_parameters ( ) ;
15- let mut available_signed_entity_types = BTreeSet :: new ( ) ;
16-
17- available_signed_entity_types. insert ( SignedEntityTypeDiscriminants :: CardanoTransactions ) ;
15+ let available_signed_entity_types =
16+ BTreeSet :: from ( [ SignedEntityTypeDiscriminants :: CardanoTransactions ] ) ;
1817 let signed_entity_types_config = SignedEntityTypeConfiguration {
1918 cardano_transactions : Some ( CardanoTransactionsSigningConfig :: dummy ( ) ) ,
2019 } ;
You can’t perform that action at this time.
0 commit comments