-
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
Simplify tally and ppup states #3279
Conversation
I'm for it @lehins ! let me know when it's ready for a proper review and I'll take a much closer look, thanks! |
b62c636
to
0f5de29
Compare
0f5de29
to
8d23cd7
Compare
8d23cd7
to
e7a76b1
Compare
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
eras/shelley/test-suite/test/Test/Cardano/Ledger/Shelley/Serialisation/Golden/Encoding.hs
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.
looks great Alexey, I think it's definitely worth having the goverance state in a slight weird place in order to make the code this much cleaner and to remove all those constraints. thanks! (I made lots of small comments, but nothing of importance).
* Remove PPUPState from Shelley * Add `EraGovernance` instead of `EraTallyState` * Adjust golden test for `LedgerState` encoding to account for tally state removal * adjust changelog
e7a76b1
to
b746ca8
Compare
Description
Replace TallyState and PPUPState with GovernanceState:
EraGovernance
instead ofEraTallyState
HashAnnotated (TxBody era) EraIndependentTxBody (EraCrypto era)
in ledger state instancesChecklist
fourmolu
(which can be run withscripts/fourmolize.sh