-
Notifications
You must be signed in to change notification settings - Fork 36
[Peras 5] Adapt the HFC time translation layer for Peras #1681
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
Open
tbagrel1
wants to merge
2
commits into
main
Choose a base branch
from
main-pr/hfc-era-peras
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NodeToNode version and adapt the HFC time translation layer for Peras37a9f85 to
222f4be
Compare
3237d2a to
c2b6bbf
Compare
222f4be to
d47c331
Compare
c077a49 to
66e4657
Compare
d47c331 to
918307c
Compare
d9c165b to
bef68f5
Compare
bef68f5 to
0c3b30f
Compare
66e4657 to
513188c
Compare
0c3b30f to
2e7a690
Compare
513188c to
f669223
Compare
2e7a690 to
09669d1
Compare
f669223 to
b0b9e89
Compare
785b903 to
4188b8f
Compare
ea8fb7d to
000c0f8
Compare
- Add `PerasRoundLength` - introduce the `PerasEnabled` datatype to track values are only used when Peras is enabled - HFC: translate between Peras rounds and slots Co-authored-by: Agustin Mista <agustin.mista@moduscreate.com> Co-authored-by: Alexander Esgen <alexander.esgen@iohk.io> Co-authored-by: Georgy Lukyanov <georgy.lukyanov@iohk.io> Co-authored-by: Thomas BAGREL <thomas.bagrel@tweag.io> Co-authored-by: Nicolas BACQUEY <nicolas.bacquey@tweag.io> Co-authored-by: Nicolas "Niols" Jeannerod <nicolas.jeannerod@moduscreate.com>
Co-authored-by: Agustin Mista <agustin.mista@moduscreate.com> Co-authored-by: Alexander Esgen <alexander.esgen@iohk.io> Co-authored-by: Georgy Lukyanov <georgy.lukyanov@iohk.io> Co-authored-by: Thomas BAGREL <thomas.bagrel@tweag.io> Co-authored-by: Nicolas BACQUEY <nicolas.bacquey@tweag.io> Co-authored-by: Nicolas "Niols" Jeannerod <nicolas.jeannerod@moduscreate.com>
000c0f8 to
b7e6e1c
Compare
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes tweag/cardano-peras#65
Changes
EraParamsnow keeps track of an optional Peras round length.Boundnow keeps track of an optional Peras round number.Serialiseinstances forEraParamsandBound, the encoders generate different CBOR depending on whether of not the Peras-relate components are present. The decoders act differently depending on the length of the CBOR list.EraSummary, while not modified directly, is now Peras-aware viaEraParamsandBound:EraSummarys haddock and ininvariantSummary's implementation.Two new top-level queries are exposed from
Ouroboros.Consensus.HardFork.History.Qry:add a roundtrip test that ensures that converting Peras round number to a slot and then back is an identity is added into the
Test.Consensus.HardFork.Summarymodule.add a Peras-specific test into
Test.Consensus.HardFork.Historymodule.Suggested review order
Even though this PR affects many files, the bulk of the changes is localised. I suggest the following review order:
ouroboros-consensus/Ouroboros/Consensus/HardFork/History/EraParams.hsandouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/HardFork/History/Summary.hsouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/HardFork/History/Qry.hsconsensus-test/Test/Consensus/HardFork/History.hsandconsensus-test/Test/Consensus/HardFork/Summary.hs