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 90ee04b4ddd..937c6d9da33 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) {