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

Change the type of some pparam fields to align with how they are represented in Consensus #3947

Merged
merged 4 commits into from
Dec 29, 2023

Conversation

TimSheard
Copy link
Contributor

@TimSheard TimSheard commented Dec 19, 2023

Addresses issue #3942, issue #3905, and issue #3906
Changes a few PParam fields to Word32 and Word16 to align with how they are represents in Consensus.

Also changed 2 fields in the type BHeaderView, to align with the PParams changes

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@TimSheard TimSheard changed the title WIPchange the type of some pparam fields to align with how they are represented in Consensus Change the type of some pparam fields to align with how they are represented in Consensus Dec 19, 2023
@TimSheard TimSheard force-pushed the ts-pparam-type-changes branch 4 times, most recently from 99dfa37 to d943495 Compare December 21, 2023 23:29
@TimSheard TimSheard requested review from lehins and aniketd December 22, 2023 15:50
@TimSheard TimSheard force-pushed the ts-pparam-type-changes branch 3 times, most recently from 7e970d7 to 290ff71 Compare December 28, 2023 22:25
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

One more dangerous bug needs to be squashed and I think we are good to go.

CHANGELOG.md Show resolved Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Chain.hs Outdated Show resolved Hide resolved
@TimSheard TimSheard force-pushed the ts-pparam-type-changes branch from e802c4e to 8e27913 Compare December 29, 2023 00:01
CHANGELOG.md Outdated Show resolved Hide resolved
…d related fields and Lenses) from EpochNo to EpochInterval
Adjust random generation of Tests, to meet reduced scope (Word16) of MaxBHSize.
Apply suggestions from code review Co-authored-by: Alexey Kuleshevich <alexey.kuleshevich@iohk.io>
Added function fromIntegralBounded.
@TimSheard TimSheard force-pushed the ts-pparam-type-changes branch from 8e27913 to 2e6ca95 Compare December 29, 2023 17:30
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Awesome. Thank you!

@lehins lehins merged commit d75254d into master Dec 29, 2023
10 of 27 checks passed
@neilmayhew neilmayhew deleted the ts-pparam-type-changes branch March 8, 2024 21:07
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.

2 participants