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

PParamsUpdate enactment fix #3836

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Conversation

lehins
Copy link
Contributor

@lehins lehins commented Nov 1, 2023

Description

Fixes #3835

Original implementation was buggy and did not produced any groups for PParam groups, which resulted in DRep thresholds to be set to zero for PParamUpdates, yielding all PParam proposals be enacted, regardless on what DReps though about them 😄

One more fix included is a PParamUpdate wellformdness check that ensures empty PParams can't be proposed.

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

@lehins lehins requested a review from Soupstraw November 1, 2023 00:38
@lehins lehins changed the base branch from master to lehins/treasury-withdrawals-tests November 1, 2023 00:42
@lehins lehins changed the base branch from lehins/treasury-withdrawals-tests to master November 1, 2023 00:42
@lehins lehins force-pushed the lehins/pparamsupdate-enactment-tests branch 2 times, most recently from 7caefa5 to 81f8116 Compare November 1, 2023 01:02
Copy link
Contributor

@teodanciu teodanciu left a comment

Choose a reason for hiding this comment

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

Left a few comments and questions.
Looks good to me.

This is very important, otherwise we can't figure out the group and thus the
threshold for DReps, making a proposla trivially enactable, with the CC
support that is.

Related change to the spec:
IntersectMBO/formal-ledger-specifications#274
@lehins lehins force-pushed the lehins/pparamsupdate-enactment-tests branch from 3299f62 to c60566c Compare November 2, 2023 17:13
This is an alternative approach to figuring out thresholds. Original
approach was buggy and did not work correctly, which resulted in #3835

Bring back the module

Bring back the module
@lehins lehins force-pushed the lehins/pparamsupdate-enactment-tests branch from c60566c to ee3192c Compare November 2, 2023 17:16
@lehins lehins enabled auto-merge November 2, 2023 17:16
GHC-8.10 has a bug where current setup of type families and usage of
type class functions to define standalone functions that depnend on the
same type class results in compiler going into infinite loop.

GHC bug report: https://gitlab.haskell.org/ghc/ghc/-/issues/21973
@lehins lehins merged commit c9d2d53 into master Nov 3, 2023
8 of 42 checks passed
@iohk-bors iohk-bors bot deleted the lehins/pparamsupdate-enactment-tests branch November 3, 2023 15:50
@lehins lehins mentioned this pull request Nov 3, 2023
9 tasks
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.

parameter change enacted with only 1 DREP abstain vote
3 participants