From c33e2991760af6aedf58770140d72e31e5c8e010 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sun, 10 Mar 2019 12:56:37 +1100 Subject: [PATCH] Ensure epoch processing benches get new eth1 data --- eth2/state_processing/benches/block_processing_benches.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eth2/state_processing/benches/block_processing_benches.rs b/eth2/state_processing/benches/block_processing_benches.rs index 26c62d0d3..755207f96 100644 --- a/eth2/state_processing/benches/block_processing_benches.rs +++ b/eth2/state_processing/benches/block_processing_benches.rs @@ -174,7 +174,12 @@ fn build_block(state: &mut BeaconState, keypairs: &[Keypair], spec: &ChainSpec) ); } - builder.build(&keypair.sk, &state.fork, spec) + let mut block = builder.build(&keypair.sk, &state.fork, spec); + + // Set the eth1 data to be different from the state. + block.eth1_data.block_hash = Hash256::from_slice(&vec![42; 32]); + + block } /// Run the detailed benchmarking suite on the given `BeaconState`.