-
Notifications
You must be signed in to change notification settings - Fork 87
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
Use the real Allegra and Mary era tags #2679
Conversation
Draft because this depends on IntersectMBO/cardano-ledger#1902. |
cb51397
to
bd5f2d1
Compare
bca2cd0
to
ad7a4ac
Compare
ad7a4ac
to
51c4dd9
Compare
Rebased and nearly ready. This includes #2716 until merged. The implementation is done, but the tests are still blocked by one thing (AFAIK, unless the current compile errors are hiding other problems): the generators for the serialisation tests in the ledger only work for the Shelley era, not for the Allegra and Mary eras. Because of how our generators are written (see #2709), it is PITA to try to work around this. Let's wait for CAD-2119 (we actually only need the easiest subtask of that issue). |
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.
Just waiting for @uroboros 🙄 😬
51c4dd9
to
4cc0ea8
Compare
coming soon! ish! |
4cc0ea8
to
e720b57
Compare
bcae0e6
to
db21cf1
Compare
arbitrary = arbitraryBoundedEnum | ||
|
||
shrink v | ||
| v == minBound = [] | ||
| otherwise = [pred v] |
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.
This way it's future-proof
72a89f2
to
57d0069
Compare
The ledger state format changed because of IntersectMBO/cardano-ledger#1968 The decoder is backwards-compatible, so the ledger doesn't break binary compatibility. The other visible change is IntersectMBO/cardano-ledger#1966
57d0069
to
2395603
Compare
Fixes #2670. Without these new versions, nodes forked to Allegra or Mary can no longer communicate with other nodes or clients.
2395603
to
1f4735d
Compare
bors merge |
Build succeeded: |
Unrelated to this PR, but spotted during review. This was forgotten in #2679.
Unrelated to this PR, but spotted during review. This was forgotten in #2679.
Fixes #2668.
Previously, the Allegra and Mary eras were exactly the same as the Shelley era,
so no translations between the eras were needed.
In this commit, we use the actual, different
AllegraEra
andShelleyEra
tags.This means we need translations between the eras.