Skip to content

feat: support the Dijkstra era (before Leios) - #3702

Draft
jpraynaud wants to merge 9 commits into
mainfrom
jpraynaud/3687-hard-fork-dijkstra-without-leios
Draft

jpraynaud wants to merge 9 commits into
mainfrom
jpraynaud/3687-hard-fork-dijkstra-without-leios

Conversation

@jpraynaud

@jpraynaud jpraynaud commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Content

Important

  • Upgrade temporarily the Pallas crates to the fork jpraynaud/pallas (v1.5.0-rc.2 with the decoding of the cardano-node `11.2.0 header), to be replaced by the released crates

This PR includes the support of the Dijkstra era (before Leios) in the Mithril nodes, the Cardano devnet and the end-to-end tests:

  • Add the hashes of the sub-transactions (nested transactions, CIP-0118) of each transaction to the scanned blocks, so that the Cardano transactions certifications include them, with no change for the blocks of the earlier eras
  • Add a Dijkstra mode to the Cardano devnet: with cardano-node 11.2.0 or later the devnet forks to every era up to Conway at epoch 0 and to Dijkstra at the epoch given by --cardano-hard-fork-latest-era-at-epoch, with the Dijkstra genesis and nested transactions in the payment script
  • Update the end-to-end runner to certify random sub-transactions in the full and minimal scenarios, to fail when a devnet started in Dijkstra produced none, and to refuse a hard fork epoch with a node below 11.2.0
  • Add cardano-node 11.2.1 to the e2e matrix of the CI, plus one job starting the devnet in Conway and forking to Dijkstra at epoch 2

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • All check jobs of the CI have succeeded
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Issue(s)

Relates to #3687

@jpraynaud jpraynaud self-assigned this Nov 12, 2026
@jpraynaud jpraynaud added prototype 🛠️ Prototype/PoC of a feature do-not-merge 🔒 Do not merge labels Nov 12, 2026
Copilot AI lite review requested due to automatic review settings November 12, 2026 17:11
@jpraynaud
jpraynaud marked this pull request as draft November 12, 2026 17:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A newly added public path accessor lacks the documentation provided for the other public APIs, so the API documentation is incomplete.

1 open issue
What changed in this PR

Adds Dijkstra-era support across Mithril’s Cardano chain scanning, devnet tooling, end-to-end scenarios, and CI, including nested transaction hashes and Conway-to-Dijkstra hard-fork testing.

Changes:

  • Extends block decoding, scanned-block persistence, and certification checks for Dijkstra sub-transactions.
  • Adds Dijkstra devnet configuration, genesis data, nested payment generation, and hard-fork validation.
  • Updates dependencies, fixtures, documentation, and CI coverage for cardano-node 11.2.x.
File Description
mithril-test-lab/​mithril-end-to-end/​tests/​assets/​dijkstra1.block Adds a Dijkstra block fixture containing a nested transaction.
mithril-test-lab/​mithril-end-to-end/​src/​utils/​immutable_files_utils.rs Extracts, validates, deduplicates, and samples top-level and nested transaction hashes.
mithril-test-lab/​mithril-end-to-end/​src/​scenario/​minimal.rs Includes nested transaction hashes in minimal scenario certification checks.
mithril-test-lab/​mithril-end-to-end/​src/​scenario/​full.rs Includes nested transaction hashes in full scenario certification checks.
mithril-test-lab/​mithril-end-to-end/​src/​mithril/​infrastructure.rs Propagates the configured hard-fork epoch through end-to-end test infrastructure.
mithril-test-lab/​mithril-end-to-end/​src/​main.rs Validates and forwards Dijkstra hard-fork configuration from the command line.
mithril-test-lab/​mithril-end-to-end/​src/​devnet/​cardano.rs Adds Dijkstra version detection and accessors for top-level and nested payment hashes.
mithril-test-lab/​mithril-end-to-end/​Cargo.toml Pins end-to-end Pallas dependencies to the temporary Dijkstra-capable fork and adds fixture support.
mithril-test-lab/​cardano-devnet/​README.md Documents running a Cardano devnet that forks from Conway to Dijkstra.
mithril-test-lab/​cardano-devnet/​mkfiles/​mkfiles-mithril-payment.sh Generates and submits nested Dijkstra transactions during payment workflows.
mithril-test-lab/​cardano-devnet/​mkfiles/​mkfiles-mithril-delegation.sh Adds support for stake registration certificates in Dijkstra.
mithril-test-lab/​cardano-devnet/​mkfiles/​mkfiles-init.sh Selects the latest era and validates Dijkstra hard-fork configuration.
mithril-test-lab/​cardano-devnet/​mkfiles/​mkfiles-cardano.sh Generates Dijkstra node configuration, genesis data, and snapshot-converter metadata.
mithril-test-lab/​cardano-devnet/​configuration/​11.2/​dijkstra-test-genesis.json Adds Dijkstra test genesis protocol and execution parameters.
internal/​mithril-dmq/​Cargo.toml Updates DMQ Pallas dependencies to the temporary Dijkstra-capable fork.
internal/​cardano-node/​mithril-cardano-node-chain/​tests/​assets/​dijkstra2.block Adds a Dijkstra block fixture without nested transactions.
internal/​cardano-node/​mithril-cardano-node-chain/​tests/​assets/​dijkstra1.block Adds a Dijkstra block fixture containing a nested transaction.
internal/​cardano-node/​mithril-cardano-node-chain/​src/​entities/​scanned_block.rs Stores nested transaction hashes alongside their parent transactions in scanned blocks.
internal/​cardano-node/​mithril-cardano-node-chain/​src/​chain_observer/​pallas_observer.rs Adds Dijkstra era mapping and chain-observer test coverage.
internal/​cardano-node/​mithril-cardano-node-chain/​Cargo.toml Updates chain-layer Pallas dependencies and includes the Dijkstra test fixtures.
Cargo.lock Locks the temporary Pallas fork and the new test dependencies.
.github/​workflows/​ci.yml Adds cardano-node 11.2.1 and a delayed Conway-to-Dijkstra end-to-end CI scenario.

Review effort: Lite

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Test Results

     5 files  ± 0     211 suites  ±0   59m 52s ⏱️ + 5m 22s
 4 884 tests +27   4 884 ✅ +27  0 💤 ±0  0 ❌ ±0 
16 125 runs  +84  16 125 ✅ +84  0 💤 ±0  0 ❌ ±0 

Results for commit c320cb4. ± Comparison against base commit 03627f8.

♻️ This comment has been updated with latest results.

@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 12, 2026 17:26 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from 52cef14 to 8fe5ebc Compare November 12, 2026 17:27
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 13, 2026 07:28 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from 8fe5ebc to 81f4cf9 Compare November 13, 2026 10:28
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 13, 2026 10:45 — with GitHub Actions Inactive
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 13, 2026 15:31 — with GitHub Actions Inactive
@jpraynaud
jpraynaud added this pull request to stack #3720 November 19, 2026 17:22
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from 3a9024b to 59fb891 Compare November 19, 2026 18:02
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 19, 2026 18:17 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from 59fb891 to bb510a8 Compare November 23, 2026 11:31

@damrobi damrobi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from aa47cdb to d4d7e77 Compare November 24, 2026 15:50
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 24, 2026 16:40 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from d4d7e77 to 316d28e Compare November 25, 2026 18:40
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 25, 2026 18:56 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from 316d28e to fe2a77a Compare November 30, 2026 17:10
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview November 30, 2026 17:45 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from fe2a77a to 598bebb Compare December 1, 2026 16:09
@jpraynaud
jpraynaud temporarily deployed to testing-2-preview December 1, 2026 16:40 — with GitHub Actions Inactive
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from 598bebb to beeb468 Compare December 4, 2026 14:59
@jpraynaud
jpraynaud deployed to testing-2-preview December 4, 2026 15:14 — with GitHub Actions Active
@jpraynaud
jpraynaud deployed to testing-preview December 4, 2026 15:14 — with GitHub Actions Active
…sh fixes on v1.5.0-rc.3

All pallas crates come from jpraynaud/pallas at d090bbd9 (v1.5.0-rc.3 plus the cardano-node 11.2.0 header fix, the indefinite length enum fix and the cardano-node 11.3.0 header hash fix) with the unstable feature.

Temporary: switch back to the crates.io release that includes the Dijkstra era once it is published.
The devnet forks to every era up to Conway at epoch 0, the hard fork epoch only applies to Dijkstra and is refused with an older node.
Map the `dijkstranet` network code to the network magic `6`.
Map the `dijkstranet` network code to the DMQ network magic `2147483654`.
… fork

Dijkstra joins the e2e matrix for every Mithril era, one extra job starts the devnet in Conway and forks at epoch 2.
@jpraynaud
jpraynaud force-pushed the jpraynaud/3687-hard-fork-dijkstra-without-leios branch from beeb468 to c320cb4 Compare December 4, 2026 17:48
@jpraynaud
jpraynaud deployed to testing-2-preview December 4, 2026 18:02 — with GitHub Actions Active
@jpraynaud
jpraynaud deployed to testing-preview December 4, 2026 18:02 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge 🔒 Do not merge prototype 🛠️ Prototype/PoC of a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants