Ensure epoch processing benches get new eth1 data

This commit is contained in:
Paul Hauner 2019-03-10 12:56:37 +11:00
parent 3f98849362
commit c33e299176
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -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`.