-
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
the alonzo UTxO rule to use alonzo minfee function #2936
Conversation
1b13d9e
to
62b44dc
Compare
@@ -295,9 +294,11 @@ feesOK pp tx (UTxO utxo) = | |||
-- restrict Utxo to those inputs we use to pay fees. | |||
utxoCollateral = eval (collateral ◁ utxo) | |||
bal = balance @era (UTxO utxoCollateral) | |||
theFee = txBody ^. feeTxBodyL |
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.
The first usage of our new lens friends 😀
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.
Looks good to me.
I was going through the commit that introduced the problem, and was wondering about two other cases that are reusing a Shelley function (and also using pp
, which from my understanding was the problem - I might be wrong!)
- ShelleyMA.validateValueNotConservedUTxO . But the original version is still using the
Shelley.produced
, so maybe not a problem? - Shelley.validateMaxTxSizeUTxO - is this using the maxTxSize from Shelley?
Anyway, just some questions based on perhaps vague understanding- sorry if I'm barking up the wrong tree here!
Thank you so much @teodanciu for checking out the rest of the refactor!
Thanks again for looking out for more trouble! |
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.
Looks good to me.
eras/alonzo/test-suite/test/Test/Cardano/Ledger/Alonzo/Golden.hs
Outdated
Show resolved
Hide resolved
Additionally, a new golden test for the alonzo fee calculation has been added, using the block from: IntersectMBO/cardano-node#4228 (comment)
62b44dc
to
8c5498d
Compare
A bug was introduced, causing the Alonzo UTxO rule to use the Shelley
minfee
function instead of the Alonzo version. This PR reverts that.Additionally, a new golden test for the Alonzo fee calculation has been added, using the block from:
IntersectMBO/cardano-node#4228 (comment)
I will cherry pick the commit in this PR onto the release branch
release/1.0.0
after this PR is merged.resolves IntersectMBO/cardano-node#4228