IntersectMBO / cardano-ledger

The ledger implementation and specifications of the Cardano blockchain.
Apache License 2.0
262 stars 155 forks source link

Add `applyTxOpts` #4651

Closed lehins closed 2 months ago

lehins commented 2 months ago

applyTx does not give the full capability that we need for testing and experimenting. For this reason we need to implement applyTxOpts and reimplement applyTx using that new function. Also applyTx should be extracted out of ApplyTx type class and applyTxOpts should take its place in this type class.

As part of this ticket we also need to fix this imp test case: "Mempool events". Reported originally here: https://github.com/IntersectMBO/cardano-ledger/pull/4642/files#r1776293656