File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
mithril-aggregator/src/services Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ impl MessageService for MithrilMessageService {
183183 . transpose ( ) ?
184184 . cloned ( ) ;
185185
186+ #[ allow( deprecated) ]
186187 let epoch_settings_message = EpochSettingsMessage {
187188 epoch,
188189 signer_registration_protocol_parameters : Some ( signer_registration_protocol_parameters) ,
@@ -509,6 +510,7 @@ mod tests {
509510 }
510511 }
511512
513+ #[ allow( deprecated) ]
512514 mod epoch_settings {
513515 use mithril_common:: {
514516 entities:: { CardanoTransactionsSigningConfig , ProtocolParameters } ,
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ pub struct EpochSettingsMessage {
99 pub epoch : Epoch ,
1010
1111 /// Signer Registration Protocol parameters
12+ #[ deprecated(
13+ since = "0.6.27" ,
14+ note = "Will be removed soon. use `mithril_protocol_config` crate instead."
15+ ) ]
1216 #[ serde(
1317 rename = "signer_registration_protocol" ,
1418 skip_serializing_if = "Option::is_none"
@@ -22,6 +26,10 @@ pub struct EpochSettingsMessage {
2226 pub next_signers : Vec < SignerMessagePart > ,
2327
2428 /// Cardano transactions signing configuration for the current epoch
29+ #[ deprecated(
30+ since = "0.6.27" ,
31+ note = "Will be removed soon. use `mithril_protocol_config` crate instead."
32+ ) ]
2533 #[ serde( skip_serializing_if = "Option::is_none" ) ]
2634 pub cardano_transactions_signing_config : Option < CardanoTransactionsSigningConfig > ,
2735}
@@ -139,6 +147,7 @@ mod tests {
139147 }
140148
141149 fn golden_current_message ( ) -> EpochSettingsMessage {
150+ #[ allow( deprecated) ]
142151 EpochSettingsMessage {
143152 epoch : Epoch ( 10 ) ,
144153 signer_registration_protocol_parameters : Some ( ProtocolParameters {
Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ mod messages {
406406 impl Dummy for EpochSettingsMessage {
407407 /// Return a dummy [EpochSettingsMessage] (test-only).
408408 fn dummy ( ) -> Self {
409+ #[ allow( deprecated) ]
409410 Self {
410411 epoch : Epoch ( 10 ) ,
411412 signer_registration_protocol_parameters : Some ( ProtocolParameters {
You can’t perform that action at this time.
0 commit comments