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

Restrict gov actions during bootstrap #4275

Merged
merged 10 commits into from Apr 30, 2024
Merged

Restrict gov actions during bootstrap #4275

merged 10 commits into from Apr 30, 2024

Conversation

teodanciu
Copy link
Contributor

@teodanciu teodanciu commented Apr 18, 2024

Description

Resolves: #3451

Implement bootstrap phase, which means, allowing only proposals of type: ParameterChange, HardForkInitiation and Info
and restricting DRep voting to proposals of type Info.

The biggest part of the PR is adjusting the tests, namely,

  • running all existing tests with protocol version 10 and
  • running tests that are relevant (or permitted) during bootstrap phase only with protocol version 9

I have tried to maximize the number of test we can run for the bootstrap phase, so in some places i have replaced the type of proposal tested (eg: new constitution with parameter update).
Where this was too complicated (Eg: if drep voting was involved) or the tested proposal is not relevant for bootstrap by the nature of the proposal, I have separated the tests in two, and ran them with their appropriate protocol version.

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.

This is looking great!!!

eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Gov.hs Outdated Show resolved Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/HardForks.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Gov.hs Outdated Show resolved Hide resolved
@teodanciu teodanciu force-pushed the td/bootstrap branch 4 times, most recently from 29bd4ed to a6ee792 Compare April 24, 2024 16:35
@teodanciu teodanciu force-pushed the td/bootstrap branch 3 times, most recently from ab65885 to 2018b99 Compare April 26, 2024 20:58
@teodanciu teodanciu force-pushed the td/bootstrap branch 6 times, most recently from 52b5241 to ed59299 Compare April 29, 2024 17:29
@teodanciu teodanciu force-pushed the td/bootstrap branch 2 times, most recently from 0e09f4d to b37e3c6 Compare April 29, 2024 21:19
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.

This looks great! Thank you @teodanciu !!

@teodanciu teodanciu merged commit 587818a into master Apr 30, 2024
124 checks passed
@teodanciu teodanciu deleted the td/bootstrap branch April 30, 2024 00:28
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.

Bootstrap period
3 participants