Skip to content

Commit

Permalink
Merge #3266
Browse files Browse the repository at this point in the history
3266: shelley: fix bug that used maxTxExUnits instead of maxBlockExUnits r=MarcFontaine a=nfrisby

Fixes #3265.

Co-authored-by: Nicolas Frisby <nick.frisby@iohk.io>
  • Loading branch information
iohk-bors[bot] and nfrisby authored Jul 14, 2021
2 parents 2a8fb97 + 6304409 commit 934b81e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ instance ( SL.PraosCrypto c
let pparams = getPParams $ tickedShelleyLedgerState ledgerState
in AlonzoMeasure {
byteSize = ByteSize $ maxTxCapacity ledgerState
, exUnits = getField @"_maxTxExUnits" pparams
, exUnits = getField @"_maxBlockExUnits" pparams
}

pointwiseMin (AlonzoMeasure bs1 (ExUnits mem1 steps1)) (AlonzoMeasure bs2 (ExUnits mem2 steps2)) =
Expand Down

0 comments on commit 934b81e

Please sign in to comment.