-
Notifications
You must be signed in to change notification settings - Fork 166
Add a function registerInState to EraTransition
#4023
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
Add a function registerInState to EraTransition
#4023
Conversation
lehins
left a comment
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 so far. These changes totally make sense and I also agree with @amesgen comments.
8ee3dda to
8aaffc5
Compare
3911457 to
ff608c6
Compare
ff608c6 to
6a85fc0
Compare
registerInState to EraTransitionregisterInState to EraTransition
193254c to
e36ed8f
Compare
lehins
left a comment
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.
PR looks great. Just some changelog entries and version+bounds adjustments.
lehins
left a comment
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.
Thank you!! This looks great.
Makes me happy to see improvements to this interface
... which allows to inject transition configuration data in the given `NewEpochState`. This change allows the Ledger to define this logic in this component without needing to do it in the Consensus layer. In this way, we improve the separation of concerns.
This allows the `ThreadNet` tests in Consensus to use `injectIntoTestState` after creating the initial state.
... stating that no funds or delegates are registered by this function.
Functions `registerInitialFunds`, `registerInitialStaking`, `registerInitialDReps`, and `registerDelegs` were used by the Consensus code, which now relies on `injectIntoTestState`.
105b848 to
ba5a9dd
Compare
... which allows to inject transition configuration data in the given
NewEpochState.This change allows the Ledger to define this logic in this component without needing to do it in the Consensus layer. In this way, we improve the separation of concerns.
Part of IntersectMBO/ouroboros-consensus#899
Checklist
.cabalandCHANGELOG.mdfiles according to theversioning process.
.cabalfiles 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)CHANGELOG.mdfor the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu(usescripts/fourmolize.sh)scripts/cabal-format.sh)hie.yamlhas been updated (usescripts/gen-hie.sh)