Skip to content

Commit

Permalink
Merge pull request #4689 from IntersectMBO/td/fix-utxo-test-failure
Browse files Browse the repository at this point in the history
Set `maxTxSize` relative to generated tx in Utxo conformance tests
  • Loading branch information
lehins authored Oct 15, 2024
2 parents 156f568 + 6abb355 commit b2dc785
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import Cardano.Ledger.CertState (
)
import Cardano.Ledger.Coin (Coin (..), CompactForm (..))
import Cardano.Ledger.Conway (Conway)
import Cardano.Ledger.Conway.Core (Era (..), EraPParams (..), PParams, ppMaxTxSizeL)
import Cardano.Ledger.Conway.Core (Era (..), EraPParams (..), PParams, ppMaxTxSizeL, sizeTxF)
import Cardano.Ledger.Conway.Governance (
Committee (..),
EnactState (..),
Expand Down Expand Up @@ -162,10 +162,11 @@ instance
runGenRS proof genSize $
genAlonzoTx proof ueSlot
ueCertState <- arbitrary
let txSize = uecTx ^. sizeTxF
let
uePParams =
gePParams (gsGenEnv gs)
& ppMaxTxSizeL .~ 3000
& ppMaxTxSizeL .~ fromIntegral txSize
& ppProtocolVersionL .~ ProtVer (natVersion @10) 0
uecUtxoEnv = UtxoEnv {..}
pure UtxoExecContext {..}
Expand Down

0 comments on commit b2dc785

Please sign in to comment.