-
Notifications
You must be signed in to change notification settings - Fork 156
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
Mismatch for Conway predicate failures #4666
Conversation
87dba8f
to
a6572dd
Compare
7e89bac
to
99cee0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice improvement! Your handling of the protocol encoding variations is neat, too.
My suggestions are mostly cosmetic.
However, there's a more substantial one at the end. It doesn't affect the functionality, but it does affect the readability.
I've also suggested a few additional places where Mismatch
could be used.
99cee0e
to
0ff6cfb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All my comments in BBODY rule module apply to all other rules affected by this PR.
0437261
to
3f8dd45
Compare
3f8dd45
to
c47d53d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I only commented on the Coders parts.
The extra constraint should not be there. We should try hrd to get rid of it.
libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Coders.hs
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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!
A few more simplifications and improvements and it will ready to go
libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Coders.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Coders.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-binary/src/Cardano/Ledger/Binary/Decoding/Coders.hs
Outdated
Show resolved
Hide resolved
34b1182
to
e8ec767
Compare
44395aa
to
1e058b9
Compare
1e058b9
to
cb9eed2
Compare
cb9eed2
to
0d410a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one change that is still necessary that I overlooked and @teodanciu caught. It needs to be fixed. Otherwise it is ready to be merged.
6cb0bdf
to
20c3fab
Compare
Also, add {Enc,Dec}CBORGroup instances for Mismatch
Rules: - BBODY - GOV - GOVCERT - LEDGER - UTXO - UTXOW
20c3fab
to
7ab118d
Compare
Description
This is the second (Conway) part of #4619.
Checklist
CHANGELOG.md
for the affected packages.New section is never added with the code changes. (See RELEASING.md)
.cabal
andCHANGELOG.md
files according to theversioning process.
.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)
fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)