-
Notifications
You must be signed in to change notification settings - Fork 170
Swap Mempool/Ledger predicate failures in Dijkstra #5461
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
base: master
Are you sure you want to change the base?
Conversation
|
@lehins this is just a draft because it doesn't build yet: I am not sure how I should convince GHC to accept my constraints on test code:
I suppose the issue is that the Imp tests for next eras call the ones for the previous era, so probably there is an easy way to rearrange this to have it not complain, but I am not seeing it atm. |
eras/dijkstra/impl/src/Cardano/Ledger/Dijkstra/Rules/Mempool.hs
Outdated
Show resolved
Hide resolved
07b468a to
b80b176
Compare
|
|
||
| describe "Mempool" $ do | ||
| let | ||
| submitFailingMempoolTx :: |
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.
these type signatures are needed to make the compiler infer correctly the injectFailure below
| exampleTxDijkstra | ||
| exampleDijkstraGenesis | ||
|
|
||
| mkLedgerExamples :: |
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.
We do need a new copy of this one unfortunately, because of the wrapping of the Ledger failure into the Mempool failure
To get there we need to move the `ApplyTxError era` type to be a data family in the ApplyTx class
Description
Fix #5447, fix #5448
Checklist
CHANGELOG.mdfiles updated for packages with externally visible changes.NOTE: New section is never added with the code changes. (See RELEASING.md).
.cabalandCHANGELOG.mdfiles when necessary, according to theversioning process.
.cabalfiles updated when necessary.NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
scripts/fourmolize.sh).scripts/cabal-format.sh).scripts/gen-cddl.sh)hie.yamlupdated (usescripts/gen-hie.sh).