Skip to content

Commit

Permalink
Shuffle txs
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Jul 19, 2023
1 parent 350fa16 commit 0799799
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0799799

Please sign in to comment.