Skip to content

Commit

Permalink
Merge pull request #2194 from input-output-hk/jpraynaud/fix-e2e-test-…
Browse files Browse the repository at this point in the history
…cardano-database

Fix: `CardanoDatabase` artifacts verification in e2e test
  • Loading branch information
jpraynaud authored Jan 2, 2025
2 parents df60a00 + f07cefb commit cda6530
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/website/blog/2024-12-17-era-switch-pythagoras.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags: [era, switch, thales, pythagoras]

### Era switch to Pythagoras

We have introduced the **Pythagoras era** in the Mithril networks. The era switch to `Pythagoras` is a significant milestone that brings new features and improvements to the Mithril protocol.
We have introduced the **Pythagoras era** in the Mithril networks. The era switch to `Pythagoras` is a significant milestone that brings new features and security improvements to the Mithril protocol.

:::danger

Expand Down
2 changes: 1 addition & 1 deletion mithril-test-lab/mithril-end-to-end/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-end-to-end"
version = "0.4.56"
version = "0.4.57"
authors = { workspace = true }
edition = { workspace = true }
documentation = { workspace = true }
Expand Down
8 changes: 7 additions & 1 deletion mithril-test-lab/mithril-end-to-end/src/end_to_end_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct Spec<'a> {
pub infrastructure: &'a mut MithrilInfrastructure,
is_signing_cardano_transactions: bool,
is_signing_cardano_stake_distribution: bool,
is_signing_cardano_database: bool,
next_era: Option<String>,
regenesis_on_era_switch: bool,
}
Expand All @@ -32,6 +33,11 @@ impl<'a> Spec<'a> {
.as_ref()
.to_string(),
),
is_signing_cardano_database: signed_entity_types.contains(
&SignedEntityTypeDiscriminants::CardanoDatabase
.as_ref()
.to_string(),
),
next_era,
regenesis_on_era_switch,
}
Expand Down Expand Up @@ -181,7 +187,7 @@ impl<'a> Spec<'a> {
}

// Verify that Cardano database snapshot artifacts are produced and signed correctly
{
if self.is_signing_cardano_database {
let merkle_root =
assertions::assert_node_producing_cardano_database_snapshot(&aggregator_endpoint)
.await?;
Expand Down

0 comments on commit cda6530

Please sign in to comment.