@@ -316,10 +316,7 @@ impl EpochService for MithrilEpochService {
316316 . configuration_for_registration
317317 . signed_entity_types_config
318318 . cardano_transactions
319- . clone ( )
320- . ok_or ( anyhow ! (
321- "Missing cardano transactions signing config for registration epoch {epoch:?}"
322- ) ) ?,
319+ . clone ( ) ,
323320 } ;
324321 self . insert_epoch_settings (
325322 signer_registration_epoch,
@@ -635,15 +632,15 @@ impl FakeEpochService {
635632
636633 let current_epoch_settings = AggregatorEpochSettings {
637634 protocol_parameters : fixture. protocol_parameters ( ) ,
638- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
635+ cardano_transactions_signing_config : Some ( CardanoTransactionsSigningConfig :: dummy ( ) ) ,
639636 } ;
640637 let next_epoch_settings = AggregatorEpochSettings {
641638 protocol_parameters : fixture. protocol_parameters ( ) ,
642- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
639+ cardano_transactions_signing_config : Some ( CardanoTransactionsSigningConfig :: dummy ( ) ) ,
643640 } ;
644641 let signer_registration_epoch_settings = AggregatorEpochSettings {
645642 protocol_parameters : fixture. protocol_parameters ( ) ,
646- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
643+ cardano_transactions_signing_config : Some ( CardanoTransactionsSigningConfig :: dummy ( ) ) ,
647644 } ;
648645
649646 FakeEpochServiceBuilder {
@@ -908,15 +905,21 @@ mod tests {
908905 next_signers_with_stake : epoch_fixture. signers_with_stake ( ) ,
909906 stored_current_epoch_settings : AggregatorEpochSettings {
910907 protocol_parameters : epoch_fixture. protocol_parameters ( ) ,
911- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
908+ cardano_transactions_signing_config : Some (
909+ CardanoTransactionsSigningConfig :: dummy ( ) ,
910+ ) ,
912911 } ,
913912 stored_next_epoch_settings : AggregatorEpochSettings {
914913 protocol_parameters : epoch_fixture. protocol_parameters ( ) ,
915- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
914+ cardano_transactions_signing_config : Some (
915+ CardanoTransactionsSigningConfig :: dummy ( ) ,
916+ ) ,
916917 } ,
917918 stored_signer_registration_epoch_settings : AggregatorEpochSettings {
918919 protocol_parameters : epoch_fixture. protocol_parameters ( ) ,
919- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
920+ cardano_transactions_signing_config : Some (
921+ CardanoTransactionsSigningConfig :: dummy ( ) ,
922+ ) ,
920923 } ,
921924 total_spo : 1 ,
922925 total_stake : 0 ,
@@ -1082,7 +1085,9 @@ mod tests {
10821085 let mut service = EpochServiceBuilder {
10831086 allowed_discriminants : allowed_discriminants. clone ( ) ,
10841087 stored_current_epoch_settings : AggregatorEpochSettings {
1085- cardano_transactions_signing_config : cardano_transactions_signing_config. clone ( ) ,
1088+ cardano_transactions_signing_config : Some (
1089+ cardano_transactions_signing_config. clone ( ) ,
1090+ ) ,
10861091 ..AggregatorEpochSettings :: dummy ( )
10871092 } ,
10881093 ..EpochServiceBuilder :: new ( epoch, MithrilFixtureBuilder :: default ( ) . build ( ) )
@@ -1169,16 +1174,19 @@ mod tests {
11691174 . build ( ) ;
11701175
11711176 let epoch = Epoch ( 5 ) ;
1172- let mut service = EpochServiceBuilder {
1173- stored_next_epoch_settings : AggregatorEpochSettings {
1174- protocol_parameters : next_epoch_fixture. protocol_parameters ( ) ,
1175- cardano_transactions_signing_config : CardanoTransactionsSigningConfig :: dummy ( ) ,
1176- } ,
1177- next_signers_with_stake : next_epoch_fixture. signers_with_stake ( ) . clone ( ) ,
1178- ..EpochServiceBuilder :: new ( epoch, current_epoch_fixture. clone ( ) )
1179- }
1180- . build ( )
1181- . await ;
1177+ let mut service =
1178+ EpochServiceBuilder {
1179+ stored_next_epoch_settings : AggregatorEpochSettings {
1180+ protocol_parameters : next_epoch_fixture. protocol_parameters ( ) ,
1181+ cardano_transactions_signing_config : Some (
1182+ CardanoTransactionsSigningConfig :: dummy ( ) ,
1183+ ) ,
1184+ } ,
1185+ next_signers_with_stake : next_epoch_fixture. signers_with_stake ( ) . clone ( ) ,
1186+ ..EpochServiceBuilder :: new ( epoch, current_epoch_fixture. clone ( ) )
1187+ }
1188+ . build ( )
1189+ . await ;
11821190
11831191 service
11841192 . inform_epoch ( epoch)
@@ -1271,10 +1279,10 @@ mod tests {
12711279 async fn inform_epoch_insert_registration_epoch_settings_in_the_store ( ) {
12721280 let expected_epoch_settings = AggregatorEpochSettings {
12731281 protocol_parameters : ProtocolParameters :: new ( 6 , 89 , 0.124 ) ,
1274- cardano_transactions_signing_config : CardanoTransactionsSigningConfig {
1282+ cardano_transactions_signing_config : Some ( CardanoTransactionsSigningConfig {
12751283 security_parameter : BlockNumber ( 10 ) ,
12761284 step : BlockNumber ( 15 ) ,
1277- } ,
1285+ } ) ,
12781286 } ;
12791287
12801288 let epoch = Epoch ( 4 ) ;
@@ -1286,9 +1294,9 @@ mod tests {
12861294 MithrilNetworkConfigurationForEpoch {
12871295 protocol_parameters : expected_epoch_settings. protocol_parameters . clone ( ) ,
12881296 signed_entity_types_config : SignedEntityTypeConfiguration {
1289- cardano_transactions : Some (
1290- expected_epoch_settings . cardano_transactions_signing_config . clone ( ) ,
1291- ) ,
1297+ cardano_transactions : expected_epoch_settings
1298+ . cardano_transactions_signing_config
1299+ . clone ( ) ,
12921300 } ,
12931301 ..Dummy :: dummy ( )
12941302 } ,
0 commit comments