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

Added pulsing incremental computation of the DRep distribution #3592

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

TimSheard
Copy link
Contributor

@TimSheard TimSheard commented Jul 31, 2023

Added module Cardano.Ledger.DRepDistr, defines pulsing DRepDistr.
Integrated the DRepDistr into NEWEPOCH, EPOCH, and RATIFY rules.

Description

Addresses issue #3446

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

Copy link
Contributor

@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.

I think this looks great. Just some minor cleanup is needed and one minor question.

We still need to remember all of the votes at the epoch boundary as well, so they don't change, but that will be done as a separate ticket in #3590

eras/shelley/impl/src/Cardano/Ledger/Shelley/Lenses.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/DRepDistr.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/DRepDistr.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/DRepDistr.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/DRepDistr.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/DRepDistr.hs Outdated Show resolved Hide resolved
libs/cardano-ledger-core/src/Cardano/Ledger/DRepDistr.hs Outdated Show resolved Hide resolved
Copy link
Contributor

@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.

Very nice. Thank you.

libs/cardano-ledger-core/src/Cardano/Ledger/CertState.hs Outdated Show resolved Hide resolved
@TimSheard TimSheard force-pushed the ts-DRepDistr branch 6 times, most recently from c3edea6 to 921173b Compare August 9, 2023 17:56
This was added as a 3rd field to VState. Changed Serialisation and Golden Tests.
Integrated the DRepDistr into NEWEPOCH, EPOCH, RATIFY, and TICK rules.
Reorgnized (and added missing) Lenses for types in and below NewEpochState
@lehins lehins enabled auto-merge (squash) August 9, 2023 22:42
@lehins lehins merged commit 0f0b482 into master Aug 10, 2023
11 of 12 checks passed
@iohk-bors iohk-bors bot deleted the ts-DRepDistr branch August 10, 2023 00:22
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.

None yet

4 participants