From 079979924d6c8cc87d079e243d219d2f35be3eb6 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Wed, 19 Jul 2023 21:19:35 +0800 Subject: [PATCH] Shuffle txs --- tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py b/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py index 5c9cd6e2c..a6dcc7e9a 100644 --- a/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py +++ b/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py @@ -40,7 +40,9 @@ def run_block_with_blobs(spec, state, blob_count, tx_count=1, data_gas_used=1, e blob_kzg_commitments += commits for _ in range(non_blob_tx_count): - txs.append(get_random_tx(rng=rng)) + txs.append(get_random_tx(rng)) + + rng.shuffle(txs) block.body.blob_kzg_commitments = blob_kzg_commitments block.body.execution_payload.transactions = txs