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

Inline UTxO and UTxOW PredFailure for Conway #4265

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

Lucsanszky
Copy link
Contributor

@Lucsanszky Lucsanszky commented Apr 15, 2024

Description

Resolves #4170

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 Author

@Lucsanszky Lucsanszky left a comment

Choose a reason for hiding this comment

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

I added some comments to facilitate review. Also, I intend to clean up the imports and reorganise some of my added changes.

eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxo.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxo.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxow.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxow.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxo.hs Outdated Show resolved Hide resolved
@teodanciu
Copy link
Contributor

Is there a ticket linked to this PR, for a little context?

@Lucsanszky
Copy link
Contributor Author

Is there a ticket linked to this PR, for a little context?

Sure! I've just updated the description and linked the issue.

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.

Definition and translation of Predicate failures look good, except some InjectRuleFailure instances are missing. Definition of new rule, however, is not necessary.

Let me know if you can't figure it out or if something is preventing you from reusing UTXO rule from Babbage.

@Lucsanszky Lucsanszky force-pushed the lucsanszky/stop-embedding-predfailures branch 6 times, most recently from 1d056ad to 5f3fe70 Compare April 17, 2024 05:35
@Lucsanszky Lucsanszky marked this pull request as ready for review April 17, 2024 05:38
@Lucsanszky Lucsanszky force-pushed the lucsanszky/stop-embedding-predfailures branch from 5f3fe70 to 6164768 Compare April 17, 2024 13:53
@Lucsanszky Lucsanszky requested a review from lehins April 17, 2024 16:45
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.

Perfect! 👍
Thank you.

eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxo.hs Outdated Show resolved Hide resolved
eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Utxo.hs Outdated Show resolved Hide resolved
@Lucsanszky Lucsanszky force-pushed the lucsanszky/stop-embedding-predfailures branch from 940b320 to 5ef15df Compare April 18, 2024 23:57
@Lucsanszky Lucsanszky force-pushed the lucsanszky/stop-embedding-predfailures branch from 5ef15df to e114203 Compare April 19, 2024 00:14
@lehins lehins enabled auto-merge April 19, 2024 00:32
@lehins lehins merged commit 6db4d47 into master Apr 19, 2024
15 checks passed
@lehins lehins deleted the lucsanszky/stop-embedding-predfailures branch April 19, 2024 02:24
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.

Stop embedding predicate failures from previous eras
3 participants