cardano-node icon indicating copy to clipboard operation
cardano-node copied to clipboard

Automated drep (Scenario 1)

Open palas opened this issue 1 year ago • 0 comments

Description

This PR aims to address this issue: https://github.com/IntersectMBO/cardano-node/issues/5600 With that aim, it adds two scenarios for automated DReps. This PR contains the first scenario:

Scenario 1

  • Create default testnet with 3 DReps and 3 stake holders delegated, one to each DRep.
  • Do some proposal and vote yes with the first DRep only.
  • Check that proposal does NOT pass.
  • Take the last two stake delegators and delegate them to "Abstain".
  • Do some other proposal and vote yes with first DRep only.
  • Check the new proposal passes now.

Checklist

  • [x] Commit sequence broadly makes sense and commits have useful messages
  • [x] New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests See Runnings tests for more details
  • [x] Any changes are noted in the CHANGELOG.md for affected package
  • [x] The version bounds in .cabal files are updated
  • [x] CI passes. See note on CI. The following CI checks are required:
    • [x] Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • [x] Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • [x] Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7
  • [x] Self-reviewed the diff

palas avatar Apr 29 '24 16:04 palas