Skip to content

Commit

Permalink
[fix] Fix inconsistent block hash (#12161)
Browse files Browse the repository at this point in the history
Uncovered a weird issue by setting "no_cache" feature.

Another reason why the store layer cache should be removed.

Please take a look at issue
#12160
  • Loading branch information
shreyan-gupta authored Sep 27, 2024
1 parent e5aa208 commit 9ad42e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/src/tests/client/process_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub(crate) fn produce_blocks_from_height_with_protocol_version(
let next_height = height + blocks_number;
for i in height..next_height {
let mut block = env.clients[0].produce_block(i).unwrap().unwrap();
block.mut_header().set_latest_protocol_version(protocol_version);
set_block_protocol_version(&mut block, env.get_client_id(0), protocol_version);
env.process_block(0, block.clone(), Provenance::PRODUCED);
for j in 1..env.clients.len() {
env.process_block(j, block.clone(), Provenance::NONE);
Expand Down

0 comments on commit 9ad42e0

Please sign in to comment.