Merge pull request #327 from blockfrost/fix/getconf
fix: add glibc.bin to wrapper runtimeInputs for getconf
fix: add glibc.bin to wrapper runtimeInputs for getconf
Replace the manual segmented-witness serialization with MemoBytes, which simplifies the code significantly. The block body is now serialized as a flat 3-element list [invalid_transactions, transactions, peras_certificate] instead of 5 separate segments. Also fix PerasCert to encode/decode as bytes (matching CDDL), reimplement alignedValidFlags using IntSet, and expose DijkstraBlockBodyRaw/MkDijkstraBlockBody from Internal module.
Define HuddleRule instances for "block_body" and "peras_certificate" in the Dijkstra era, with a custom CBOR generator for block_body that generates valid transaction indices. Update the CDDL spec to match the new block structure: block = [header, block_body].
Change genArrayTerm from Gen to MonadGen so it can be used in CBORGen contexts (e.g. custom CBOR generators for Huddle specs).
- Add `blockBodySize` as a method on `EraBlockBody` with a default implementation using `EncCBORGroup`, replacing the standalone `bBodySize` function - Remove `EncCBORGroup (BlockBody era)` superclass constraint from `EraBlockBody` so that eras can provide their own `blockBodySize` without needing `EncCBORGroup`
Add plain DecCBOR instances for DijkstraBlockBodyRaw and DijkstraBlockBody (needed for decoder equivalence tests), and a custom ToExpr instance for DijkstraBlockBody. Add block_body to the CddlSpec test suite.
# Conflicts: # Cargo.lock # crates/cardano/src/indexes/dimensions.rs # crates/cardano/src/indexes/ext.rs # crates/cardano/src/indexes/query.rs # crates/minibf/src/routes/pools.rs # crates/redb3/src/archive/indexes.rs # crates/redb3/src/indexes/mod.rs
Verify that the decoder rejects big integers (CBOR tags 2/3) outside the valid CBOR int range of -2^64 .. 2^64-1, and accepts values at the boundaries. Also fix an off-by-one in the comment documenting the supported range. Co-authored-by: teodanciu <[email protected]> Co-authored-by: Alexey Kuleshevich <[email protected]>
This is a pain in the a** since we must now release it too, and it was already released under a bad name (using '_' instead of '-'). I've also slightly altered the generation to not silently ignore conformance tests, but actually generate test cases as 'ignored', so that they at least show up in the output.
Memoize Plutus related parts of transaction validation