Skip to content

Conversation

@agustinmista
Copy link

@agustinmista agustinmista self-assigned this Nov 12, 2025
@agustinmista agustinmista force-pushed the peras/store-certs-in-blocks branch from 7a92a86 to a503668 Compare November 18, 2025 12:26
Comment on lines +95 to +97
newtype DijkstraBbodyPredFailure era
= DijkstraBbodyPredFailure (ConwayBbodyPredFailure era) -- Temporary wrapper
deriving (Generic)
Copy link
Author

Choose a reason for hiding this comment

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

We could keep using a ConwayBbodyPredFailure until we actually need a different type, but I wanted to wrap it with a newtype to force the type checker to tell me in advance all the things we will need to manually redefine later on.

Comment on lines +251 to +256
transitionRules =
[ dijkstraBbodyTransition @era
-- TODO: these needs to be reintroduced
-- >> conwayBbodyTransition @era
-- >> alonzoBbodyTransition @era
]
Copy link
Author

Choose a reason for hiding this comment

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

I'm having issues reintroducing these after defining the empty dijkstraBbodyTransition below (block body types between these transitions are now mismatched), but I'm not sure whether I should reconcile that via the TransitionRule interface or in some other way.

Maybe you could shed some light on this issue?

Copy link
Author

Choose a reason for hiding this comment

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

This should be pretty much the same as Cardano.Ledger.Conway.BlockBody.Internal + s/Conway/Dijkstra/

Copy link
Author

@agustinmista agustinmista left a comment

Choose a reason for hiding this comment

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

Hey @lehins! Thanks again for all the help. I made some progress introducing a new block body type for Dijkstra (extracted almost verbatim from that of Conway).

If you have some time, I left some comments on a couple of places I would appreciate some feedback on 🙏

After solving these issues, my idea was to open a separate PR targeting master to integrate all these Peras-agnostic changes as soon as possible.

@agustinmista agustinmista requested a review from lehins November 18, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance Dijkstra blocks in ledger with these certificates and adapt serialization

2 participants