Skip to content

Commit a17f6a2

Browse files
committed
chore: make Cardano transaction parser fail on error
1 parent c9691d8 commit a17f6a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mithril-aggregator/src/dependency_injection/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ impl DependenciesBuilder {
741741
}
742742

743743
async fn build_transaction_parser(&mut self) -> Result<Arc<dyn TransactionParser>> {
744-
// TODO: 'allow_unparsable_block' parameter should be configurable and its default value set to false
745-
let allow_unparsable_block = true;
744+
// TODO: 'allow_unparsable_block' parameter should be configurable
745+
let allow_unparsable_block = false;
746746
let transaction_parser =
747747
CardanoTransactionParser::new(self.get_logger().await?, allow_unparsable_block);
748748

mithril-signer/src/runtime/signer_services.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ impl<'a> ServiceBuilder for ProductionServiceBuilder<'a> {
266266
));
267267
let mithril_stake_distribution_signable_builder =
268268
Arc::new(MithrilStakeDistributionSignableBuilder::default());
269-
// TODO: 'allow_unparsable_block' parameter should be configurable and its default value set to false
270-
let allow_unparsable_block = true;
269+
// TODO: 'allow_unparsable_block' parameter should be configurable
270+
let allow_unparsable_block = false;
271271
let transaction_parser = Arc::new(CardanoTransactionParser::new(
272272
slog_scope::logger(),
273273
allow_unparsable_block,

0 commit comments

Comments
 (0)