Skip to content

Commit dc59afd

Browse files
committed
Bring back correct execution units and make the tests pass.
Signed-off-by: Sasha Bogicevic <sasha.bogicevic@iohk.io>
1 parent a4fab08 commit dc59afd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hydra-node/test/Hydra/ModelSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ spec = do
159159
-- This scenario seeds a head with a single party and an UTxO set of 42 elements,
160160
-- which is over the budget of the mocked chain implementation.
161161
-- See https://github.com/cardano-scaling/hydra/issues/2270
162-
prop "fails fanout over the limit" $ expectFailure (propFanoutLimit 23)
163-
prop "succeeds fanout under the limit" $ propFanoutLimit 22
162+
prop "fails fanout over the limit" $ expectFailure (propFanoutLimit 15)
163+
prop "succeeds fanout under the limit" $ propFanoutLimit 14
164164
context "logic" $ do
165165
prop "check conflict-free liveness" $ propDL conflictFreeLiveness
166166
prop "check head opens if all participants commit" $ propDL headOpensIfAllPartiesCommit

hydra-node/testlib/Test/Hydra/Chain/Direct/State.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ genFanoutTx :: Int -> Gen (ChainContext, ClosedState, UTxO, Tx)
394394
genFanoutTx numParties = do
395395
ctx <- genHydraContextFor numParties
396396
(u0, stOpen@OpenState{headId}) <- genStOpen ctx
397-
n <- elements [1 .. 10]
397+
n <- elements [1 .. 7]
398398
toCommit' <- Just <$> genUTxOAdaOnlyOfSize n
399399
openVersion <- elements [0, 1]
400400
version <- elements [0, 1]

hydra-tx/src/Hydra/Ledger/Cardano/Evaluate.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ maxTxSize = 16384
236236
maxTxExecutionUnits :: ExecutionUnits
237237
maxTxExecutionUnits =
238238
ExecutionUnits
239-
{ executionMemory = 20_000_000
240-
, executionSteps = 20_000_000_000
239+
{ executionMemory = 14_000_000
240+
, executionSteps = 10_000_000_000
241241
}
242242

243243
-- | Max memory and cpu units of the current 'pparams'.

0 commit comments

Comments
 (0)