@@ -265,6 +265,8 @@ impl MithrilSignedEntityService {
265265 )
266266 } ) ?,
267267 ) ) ,
268+ SignedEntityType :: CardanoBlocksTransactions ( _epoch, _block_number) =>
269+ Err ( anyhow ! ( "Cardano blocks transactions is not supported yet" ) ) ,
268270 SignedEntityType :: CardanoDatabase ( beacon) => Ok ( Arc :: new (
269271 self . cardano_database_artifact_builder
270272 . compute_artifact ( beacon, certificate)
@@ -299,19 +301,22 @@ impl MithrilSignedEntityService {
299301 ) {
300302 let metrics = self . metrics_service . clone ( ) ;
301303 let metric_counter = match signed_entity_type {
302- SignedEntityType :: MithrilStakeDistribution ( _ ) => {
304+ SignedEntityType :: MithrilStakeDistribution ( .. ) => {
303305 metrics. get_artifact_mithril_stake_distribution_total_produced_since_startup ( )
304306 }
305- SignedEntityType :: CardanoImmutableFilesFull ( _ ) => {
307+ SignedEntityType :: CardanoImmutableFilesFull ( .. ) => {
306308 metrics. get_artifact_cardano_immutable_files_full_total_produced_since_startup ( )
307309 }
308- SignedEntityType :: CardanoStakeDistribution ( _ ) => {
310+ SignedEntityType :: CardanoStakeDistribution ( .. ) => {
309311 metrics. get_artifact_cardano_stake_distribution_total_produced_since_startup ( )
310312 }
311- SignedEntityType :: CardanoTransactions ( _ , _ ) => {
313+ SignedEntityType :: CardanoTransactions ( .. ) => {
312314 metrics. get_artifact_cardano_transaction_total_produced_since_startup ( )
313315 }
314- SignedEntityType :: CardanoDatabase ( _) => {
316+ SignedEntityType :: CardanoBlocksTransactions ( ..) => {
317+ metrics. get_artifact_cardano_blocks_transactions_total_produced_since_startup ( )
318+ }
319+ SignedEntityType :: CardanoDatabase ( ..) => {
315320 metrics. get_artifact_cardano_database_total_produced_since_startup ( )
316321 }
317322 } ;
@@ -697,19 +702,22 @@ mod tests {
697702 signed_entity_type : & SignedEntityType ,
698703 ) -> CounterValue {
699704 match signed_entity_type {
700- SignedEntityType :: MithrilStakeDistribution ( _ ) => metrics_service
705+ SignedEntityType :: MithrilStakeDistribution ( .. ) => metrics_service
701706 . get_artifact_mithril_stake_distribution_total_produced_since_startup ( )
702707 . get ( ) ,
703- SignedEntityType :: CardanoImmutableFilesFull ( _ ) => metrics_service
708+ SignedEntityType :: CardanoImmutableFilesFull ( .. ) => metrics_service
704709 . get_artifact_cardano_immutable_files_full_total_produced_since_startup ( )
705710 . get ( ) ,
706- SignedEntityType :: CardanoStakeDistribution ( _ ) => metrics_service
711+ SignedEntityType :: CardanoStakeDistribution ( .. ) => metrics_service
707712 . get_artifact_cardano_stake_distribution_total_produced_since_startup ( )
708713 . get ( ) ,
709- SignedEntityType :: CardanoTransactions ( _ , _ ) => metrics_service
714+ SignedEntityType :: CardanoTransactions ( .. ) => metrics_service
710715 . get_artifact_cardano_transaction_total_produced_since_startup ( )
711716 . get ( ) ,
712- SignedEntityType :: CardanoDatabase ( _) => metrics_service
717+ SignedEntityType :: CardanoBlocksTransactions ( ..) => metrics_service
718+ . get_artifact_cardano_blocks_transactions_total_produced_since_startup ( )
719+ . get ( ) ,
720+ SignedEntityType :: CardanoDatabase ( ..) => metrics_service
713721 . get_artifact_cardano_database_total_produced_since_startup ( )
714722 . get ( ) ,
715723 }
0 commit comments