Skip to content

Add Dijkstra ledger era #1567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Add Dijkstra ledger era #1567

wants to merge 9 commits into from

Conversation

geo2a
Copy link
Contributor

@geo2a geo2a commented Jun 20, 2025

Fixes #1544

Needs IntersectMBO/cardano-ledger#5136

Outstanding work:

  • In Ledger, create the Test.Cardano.Ledger.Dijkstra.Examples.Consensus module and export ledgerExamplesDijkstra. Use this in Test.Consensus.Shelley.Examples.
  • In Ledger, implement ToCBOR and FromCBOR instances for DijkstraGenesis. These should be trivial for now.
  • In Consensus, implement functions in the "Translation from Conway to Dijkstra" section of Ouroboros.Consensus.Cardano.CanHardFork:
    • translateLedgerStateConwayToDijkstraWrapper
    • translateLedgerTablesConwayToDijkstraWrapper
    • getDijkstraTranslationContext
    • translateTxConwayToDijkstraWrapper
    • translateValidatedTxConwayToDijkstraWrapper

@geo2a geo2a force-pushed the geo2a/issue1544-dijkstra-era branch 2 times, most recently from 17f9373 to c9dd81e Compare June 20, 2025 10:17
@geo2a geo2a force-pushed the geo2a/issue1544-dijkstra-era branch 2 times, most recently from dcb8014 to 77f0949 Compare June 20, 2025 11:21
@jasagredo jasagredo moved this to 🏗 In progress in Consensus Team Backlog Jun 20, 2025
Copy link
Contributor

@jasagredo jasagredo left a comment

Choose a reason for hiding this comment

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

Just a drive-by comment

Comment on lines 123 to 125
-- TODO(geo2a): feels weird to introduce a type alias and immediately deprecate it.
-- Do we still need that?
type StandardDijkstra = DijkstraEra
Copy link
Contributor

Choose a reason for hiding this comment

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

This can probably be removed, and all the others too.

@geo2a geo2a force-pushed the geo2a/issue1544-dijkstra-era branch 7 times, most recently from 20f7234 to 399bf8e Compare June 25, 2025 17:27
geo2a added 2 commits June 25, 2025 19:55
- update package names
- restructure headings
- add section on `Ouroboros.Consensus.Cardano.Ledger`
@geo2a geo2a force-pushed the geo2a/issue1544-dijkstra-era branch 2 times, most recently from f9064c0 to f08ebef Compare June 26, 2025 06:45
@geo2a geo2a force-pushed the geo2a/issue1544-dijkstra-era branch from f08ebef to d17b50a Compare June 26, 2025 07:33
@geo2a geo2a force-pushed the geo2a/issue1544-dijkstra-era branch from d17b50a to 1cf12d9 Compare June 26, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

Add Dijkstra ledger era
2 participants