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

Disallow withdrawals to non-delegated keyhashes post-bootstrap #4555

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

teodanciu
Copy link
Contributor

@teodanciu teodanciu commented Aug 21, 2024

Description

Resolves #4092

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • 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)
  • 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)
  • 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

@teodanciu teodanciu marked this pull request as draft August 21, 2024 15:58
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.

Looks good 👍

@teodanciu teodanciu force-pushed the td/withdrawals-to-nondelegated-accounts branch 2 times, most recently from 747e230 to 0a137b2 Compare August 28, 2024 21:14
@lehins lehins changed the title Disallow witdrawals to non-delegated keyhashes post-bootstrap Disallow withdrawals to non-delegated keyhashes post-bootstrap Aug 29, 2024
@teodanciu teodanciu force-pushed the td/withdrawals-to-nondelegated-accounts branch from 0a137b2 to 9030d83 Compare September 2, 2024 13:33
@teodanciu teodanciu marked this pull request as ready for review September 2, 2024 13:51
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.

Very good work!

@lehins lehins mentioned this pull request Sep 6, 2024
9 tasks
@teodanciu teodanciu force-pushed the td/withdrawals-to-nondelegated-accounts branch 2 times, most recently from 904f448 to fd0f7e1 Compare September 9, 2024 12:50
@teodanciu teodanciu enabled auto-merge September 9, 2024 12:51
@teodanciu teodanciu force-pushed the td/withdrawals-to-nondelegated-accounts branch 2 times, most recently from 1717908 to 6022dbf Compare September 9, 2024 14:03
@teodanciu teodanciu force-pushed the td/withdrawals-to-nondelegated-accounts branch from 6022dbf to 5f132d4 Compare September 9, 2024 14:51
@teodanciu teodanciu merged commit d813733 into master Sep 9, 2024
157 of 159 checks passed
@teodanciu teodanciu deleted the td/withdrawals-to-nondelegated-accounts branch September 9, 2024 17:26
@@ -134,7 +136,7 @@ data ConwayLedgerPredFailure era
= ConwayUtxowFailure (PredicateFailure (EraRule "UTXOW" era))
| ConwayCertsFailure (PredicateFailure (EraRule "CERTS" era))
| ConwayGovFailure (PredicateFailure (EraRule "GOV" era))
| ConwayWdrlNotDelegatedToDRep (Set (Credential 'Staking (EraCrypto era)))
| ConwayWdrlNotDelegatedToDRep (NonEmpty (Credential 'Staking (EraCrypto era)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

@teodanciu You didn't apply my suggestion of changing this to

-ConwayWdrlNotDelegatedToDRep (NonEmpty (Credential 'Staking (EraCrypto era)))
+ConwayWdrlNotDelegatedToDRep (NonEmpty (KeyHash 'Staking (EraCrypto era)))

Do you mind submitting a PR with this fix?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Original suggestion: #4555 (comment)

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.

Backwards compatibility for ConwayWdrlNotDelegatedToDRep
3 participants