From eb28806c08d849c184493c12018edba4824f7f6d Mon Sep 17 00:00:00 2001 From: Moray Grieve Date: Fri, 20 Dec 2024 11:56:20 +0000 Subject: [PATCH] Set as 1200 to exceed the block size limit --- tests/ten/ten_cor_117/run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/ten/ten_cor_117/run.py b/tests/ten/ten_cor_117/run.py index f729133e..8a888f1d 100644 --- a/tests/ten/ten_cor_117/run.py +++ b/tests/ten/ten_cor_117/run.py @@ -6,7 +6,7 @@ class PySysTest(TenNetworkTest): GAS = '0' - LIMIT = 5000 + LIMIT = 1200 def execute(self): # connect to the network (use an ephemeral account) @@ -37,7 +37,8 @@ def transact(self, calldata, web3, account, limit, expect_pass=True): if int(self.GAS) == 0: self.log.info('Estimating gas ...') - params['gas'] = int(1.1 * target.estimate_gas(params)) + params['gas'] = int(target.estimate_gas(params)) + self.log.info('Estimating gas %d' % target.estimate_gas(params)) else: self.log.info('Using set gas limit of %d' % int(self.GAS)) params['gas'] = int(self.GAS) @@ -55,6 +56,8 @@ def transact(self, calldata, web3, account, limit, expect_pass=True): self.assertTrue(calldata.contract.functions.getLastSum().call() == sum(large_array)) else: self.log.error('Transaction failed') + web3.eth.call(build_tx, block_identifier=tx_receipt.blockNumber) + self.log.warn('Replaying the transaction did not throw an error') if expect_pass: self.addOutcome(FAILED,outcomeReason='Expected tx to succeed') except Exception as e: self.log.error('Error %s' % e)