From c8ea3e1c86946789cb429f7887e614ad5033552c Mon Sep 17 00:00:00 2001 From: ethDreamer <37123614+ethDreamer@users.noreply.github.com> Date: Mon, 7 Aug 2023 10:49:52 -0500 Subject: [PATCH] Fix small bug in test utils (#4570) --- .../execution_layer/src/test_utils/execution_block_generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/execution_layer/src/test_utils/execution_block_generator.rs b/beacon_node/execution_layer/src/test_utils/execution_block_generator.rs index 90ee04b4dd..937c6d9da3 100644 --- a/beacon_node/execution_layer/src/test_utils/execution_block_generator.rs +++ b/beacon_node/execution_layer/src/test_utils/execution_block_generator.rs @@ -583,7 +583,7 @@ impl ExecutionBlockGenerator { ForkName::Base | ForkName::Altair | ForkName::Merge | ForkName::Capella => {} ForkName::Deneb => { // get random number between 0 and Max Blobs - let num_blobs = rand::random::() % T::max_blobs_per_block(); + let num_blobs = rand::random::() % (T::max_blobs_per_block() + 1); let kzg = self.kzg.as_ref().ok_or("kzg not initialized")?; let (bundle, transactions) = generate_random_blobs(num_blobs, kzg)?; for tx in Vec::from(transactions) {