NOT MERGE: Leios prototype remake#5839
Closed
ch1bo wants to merge 17 commits into
Closed
Conversation
Wow so much type hell, was catching missing instances for half a day, note to self: try not to mess with instance decls
Allows to decode normal blocks as "inline txs" blocks in the Leios-enabled world. This is useful to replay old praos blocks and be able to still decode them in this (hackily patched) era.
…ck-decoder Leios: Make the (leios enhanced) block decoding backwards compatible
…-backwards-compat-fix [Leios Prototype] Backwards compat fix
05d1d99 to
2764e2b
Compare
9540116 to
b6b2feb
Compare
4 tasks
4 tasks
b6b2feb to
f52d064
Compare
f52d064 to
3d46180
Compare
3d46180 to
b6b2feb
Compare
b6b2feb to
2584701
Compare
859aa47 to
2df0d1f
Compare
2c3211f to
7f524e6
Compare
a714ad6 to
2356338
Compare
Introduce 'Maybe LeiosCert' (mirrored after the existing 'Maybe PerasCert') as an optional field on the Dijkstra-era 'BlockBody'. Other eras are unaffected — this is the entire Leios-related ledger changes from leios-prototype at the time of the remake.
2356338 to
c47305f
Compare
This was referenced May 19, 2026
9 tasks
Contributor
Author
|
Was merged into |
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
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.
Note
This PR intends to fast-forward
leios-prototypeinto the head ofleios-prototype-remake. The remake targets94e9618c91 Update version and changelog— the upstreammastercommit from which CHaP'scardano-ledger-dijkstra-0.2.0.1is built, so consensus 3.0.1.0's existing version bounds and downstream cardano-node 11.0.1's CHaP-resolved ledger packages stay valid. For side-by-side comparison see diffs to the branch points:Commits
One commit on top of
6030591f8a Reset leios-prototype to upstream master (chunked recreation follows)— a snapshot-merge whose first parent is upstreammaster(94e9618c91) and second parent is the originalleios-prototypetip, preserving the prior prototype history in the DAG.L1: Add Maybe LeiosCert on DijkstraBody (Dijkstra-only). AddsMaybe LeiosCert(mirrored after the existingMaybe PerasCert) as an optional field on the Dijkstra-eraBlockBody. Other eras are unaffected — this is the entire Leios-related ledger change fromleios-prototypeat the time of the remake.DijkstraBlockBodyInternalnow carries fixed-length CBOR group withdbbLeiosCert :: !(StrictMaybe LeiosCert)+ explicitdbbLeiosCertBytes :: !(Maybe BS.ByteString)(CBOR null when absent, encoded viaencodeNullStrictMaybe).leios_certslot alongside the existingperas_certnullable slot in the Dijkstrablockrule.LeiosCert/PerasCertmoved out ofTest.Cardano.Ledger.BaseTypesSpecinto a newTest.Cardano.Ledger.Dijkstra.BlockBodySpec(Dijkstra-specific home).hashDijkstraSegWits; nohashDijkstraBodywrapper.Intentional differences from the original prototype
Maybe LeiosCertonDijkstraBody, not aBody/BodyInline/BodyCertificatesum.Block. EB announcement lives on the Praos header (consensus side), not on the ledger block.Maybe LeiosCertslot in Shelley/Allegra/Mary/Alonzo/Babbage/Conway.Verified by
cabal build allclean in the dev shell.cabal build allinouroboros-consensus(Maybe LeiosCertconsumed by the DijkstraResolveLeiosBlockinstance for cert-block tx splice).Companion PRs