Ledger Team Update
High level summary
These were our main areas of focus last period on the Ledger project:
Maintenance
We worked really hard in order to prepare Ledger for the cardano-node-10.7.0 release that had all of the bug fixes and features needed for the upcoming van Rossem Hard Fork into protocol version 11. Furthermore, we prepared Ledger for a subsequent cardano-node-10.7.1 release that had some of the performance issues resolved, which were identified in the Ledger component of 10.7.0 release.
We've also identified and fixed a few bugs, most of which were in CDDL specification. This was largely thanks to the recently integrated tool AntiGen, that we developed specifically for creating negative property tests for Ledger serialization.
Besides bug fixes, we've added quite a few nice optimizations, which do result in noticeable speed up in chain validation and replay.
Some very nice improvements were implemented for the Ledger API used by Consensus, which will result in clearer and safer boundaries between those two components.
CIP-118 - Nested Transactions:
Two more major Ledger rules UTXO and UTXOW were defined for processing transactions in the Dijkstra era that now take sub-transactions into consideration.
CIP-165 - Canonical Ledger State:
Fixes were applied to canonical ledger state representation for the Constitutional Committee
Low level summary
Features
- PR-5654 - Normalize
StakeRefPtraddresses better and improve UTxO decoding - PR-5647 - Change
Bconstructor ofMetadatumfromByteStringtoByteArray - PR-5655 - Add ToJSON/FromJSON instances for
NonEmptyMapandNonEmptySet - PR-5630 - Remove
distinct_byteshack, make CDDL reflect reality in previous eras - PR-5560 - *EraBlockHeader typeclasses deprecating BHeaderView
- PR-5658 - Optimize Text byte length check in metadata and other places
- PR-5632 - Forecast API
- PR-5671 - Remove
NoThunksinstances for predicate failures andContextErrortypes - PR-5635 - ScriptPurpose aware memoization of TxInfo
- PR-5676 - Remove state update from UTXOS
- PR-5641 - Avoid unnecessary computation of
PlutusWithContext - PR-5672 - Make
ContextErrorconstructors from Alonzo to Dijkstra era lazy - PR-5614 - SUBUTXO implementation
- PR-5668 - SUBUTXOW fixes
- PR-5704 - Backport: revert
ConwayAccountStatetype unrolling - PR-5697 - Remove 5 redundant NativeScript era ~ Timelock era constraints (#5319)
- PR-5665 - Fix
metadatumdecoder andchain_codeCDDL - PR-5681 - Add/refactor committee-related canonical namespaces
- PR-5725 - Revert decoders to a more efficient implementation
- PR-5716 - Move applyTick into its own ApplyTick typeclass
- PR-5719 - Add protocol version validation to
createInitialState - PR-5729 - Fix
ConwayAccountStateoverhead - PR-5727 - Add storable instances
Testing
- PR-5656 - Translate all transaction building examples in our test files to use Lens interface.
- PR-5609 - Adequate conformance to Version restriction
- PR-5667 - Fix Proposal generation to generate HardForkInitiation with bounded major version
- PR-5695 - Update formal-ledger-specifications and re-enable tests
- PR-5529 - Add
simpleRewardsreproducer fromcardano-db-syncand migrateTwoPoolsexample to anImpTest - PR-5715 - Bump cuddle to 1.5.0.0
Infrastructure and releasing
- PR-5653 - Add cabal-gild and shellcheck as part of the pre-commit hook in our Nix devShell.
- PR-5648 - Changelog for
cardano-node-10.7 - PR-5657 - Migrate scripts to
cardano-ledger-release-tool - PR-5599 - Enable ghc 9.14 to be used for tests in CI and locally
- PR-5677 - Bump requests from 2.32.4 to 2.33.0 in /doc
- PR-5675 - Add nixfmt in our Github CI checks
- PR-5670 - Add
CHANGELOGandcabalfile updater skill - PR-5691 - Bump pygments from 2.19.1 to 2.20.0 in /doc
- PR-5702 - Update contribution policy to note how contributions should be vetted
- PR-5703 - Add a CI workflow for checking nix hashes
- PR-5708 - Bump the actions group with 3 updates
- PR-5709 - Update
slack-github-actionconfiguration for v2 onward - PR-5712 - Fix missed version bump for allegra package
- PR-5713 - Stop running
bump-changelogson release branches - PR-5666 - Refactor transaction and transaction body of examples in Test.CardanoLedger.<era>.Examples.hs.
- PR-5717 - claude: improve changelog update skill
- PR-5710 - Update microlens dependency
- PR-5726 - Update ghc-9.12 on CI and Nix to ghc-9.12.4, and cabal-3.16 to cabal-3.16.1.0
- PR-5728 - Backport of fixes for
cardano-node-10.7.1 - PR-5741 - Fix nix build failure in
plutus-preprocessor - PR-5721 - Leios: Make the (leios enhanced) block decoding backwards compatible
