Skip to content
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

Remove Shelley genesis info from the ledger configuration #4091

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

bartfrenk
Copy link
Contributor

@bartfrenk bartfrenk commented Oct 20, 2022

Description

Closes IntersectMBO/ouroboros-consensus#409. Requires IntersectMBO/cardano-ledger#3053.

This PR does three things:

  1. It removes ShelleyGenesis from the ShelleyLedgerConfig.
  2. It adds ShelleyGenesis to ShelleyBlockConfig and reimplements GetGenesisConfig in terms of that ShelleyGenesis value.
  3. It updates the consensus code to deal with the removal of the TranslateEra * ShelleyGenesis instances in the aforementioned cardano-ledger PR.

The first and third points close IntersectMBO/ouroboros-consensus#409. The second point keeps the (query) interface backwards compatible.

Checklist

  • Branch
    • Commit sequence broadly makes sense
    • Commits have useful messages
    • New tests are added if needed and existing tests are updated
  • Pull Request
    • Self-reviewed the diff
    • Useful pull request description at least containing the following information:
      • What does this PR change?
      • Why these changes were needed?
      • How does this affect downstream repositories and/or end-users?
      • Which ticket does this PR close (if any)? If it does, is it linked?
    • Reviewer requested

@bartfrenk bartfrenk force-pushed the bartfrenk/3976/remove-shelley-genesis branch from f59ec93 to a1588d9 Compare October 27, 2022 13:16
@bartfrenk bartfrenk force-pushed the bartfrenk/3976/remove-shelley-genesis branch 2 times, most recently from 5d3ebad to f762ce0 Compare November 14, 2022 10:22
@bartfrenk bartfrenk changed the base branch from master to nfrisby/issue-3962-conway November 14, 2022 10:22
To avoid breaking backwards-compatibility of the interface we add ShelleyGenesis to
BlockConfig, and use that to serve the GetGenesisConfig query.
@bartfrenk bartfrenk force-pushed the bartfrenk/3976/remove-shelley-genesis branch from f762ce0 to 41ff462 Compare November 14, 2022 10:46
bartfrenk added a commit to IntersectMBO/cardano-ledger that referenced this pull request Nov 14, 2022
@bartfrenk bartfrenk marked this pull request as ready for review November 17, 2022 14:36
@bartfrenk bartfrenk requested a review from coot as a code owner November 17, 2022 15:38
bartfrenk added a commit to IntersectMBO/cardano-ledger that referenced this pull request Nov 21, 2022
… ShelleyGenesis instances

To support the ouroboros-network PR here:
IntersectMBO/ouroboros-network#4091
bartfrenk added a commit to IntersectMBO/cardano-ledger that referenced this pull request Nov 22, 2022
… ShelleyGenesis instances

To support the ouroboros-network PR here:
IntersectMBO/ouroboros-network#4091
bartfrenk added a commit to IntersectMBO/cardano-ledger that referenced this pull request Nov 22, 2022
… ShelleyGenesis instances

To support the ouroboros-network PR here:
IntersectMBO/ouroboros-network#4091
bartfrenk added a commit to IntersectMBO/cardano-ledger that referenced this pull request Nov 23, 2022
… ShelleyGenesis instances

To support the ouroboros-network PR here:
IntersectMBO/ouroboros-network#4091
@dnadales dnadales force-pushed the nfrisby/issue-3962-conway branch 2 times, most recently from 49da2d6 to 903bcc6 Compare February 1, 2023 10:29
Base automatically changed from nfrisby/issue-3962-conway to master February 1, 2023 16:24
@lehins
Copy link
Contributor

lehins commented Feb 7, 2023

What is the status of this PR? IntersectMBO/cardano-ledger#3053 has been merged and now I am trying to integrate newest ledger, but I am running into inability of consensus to handle FromByronTranslationContext

@bartfrenk
Copy link
Contributor Author

bartfrenk commented Feb 8, 2023

Merging this PR is waiting on @lehins integration work to be complete in #4349, and there to be a release on CHaP that includes the changes needed for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove ShelleyGenesis from ShelleyLedgerConfig
4 participants