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

Improve conway delegation certificate #3408

Merged
merged 5 commits into from
May 9, 2023

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented May 9, 2023

Description

Change representation and serialization of ConwayDelegCert to be more correct and efficient.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • 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 force-pushed the lehins/unroll-conway-dcert branch from f9b8941 to 43b66bf Compare May 9, 2023 00:53
lehins added 5 commits May 9, 2023 12:39
Previous delegation certificate in Conway allowed for invalid
cases (eg. optional deposit with voting registration+delegation)

This commit makes it more correct and efficient, by embedding
`Delegatee` encoding into the `ConwayDelegCert`
@lehins lehins force-pushed the lehins/unroll-conway-dcert branch from 43b66bf to c50aa42 Compare May 9, 2023 09:39
@lehins lehins requested a review from Soupstraw May 9, 2023 11:43
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

looks great!

@JaredCorduan JaredCorduan merged commit 63759f7 into master May 9, 2023
@iohk-bors iohk-bors bot deleted the lehins/unroll-conway-dcert branch May 9, 2023 12:53
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.

3 participants