Skip to content

Commit

Permalink
Fix call to add_to_history in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paberr authored and jsdanielh committed Jun 14, 2024
1 parent 17cac7c commit c55f9f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-utils/src/test_custom_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub fn next_micro_block(
let history_root = config.history_root.clone().unwrap_or_else(|| {
blockchain
.history_store
.add_to_history(&mut txn, Policy::epoch_at(block_number), &hist_txs)
.add_to_history(&mut txn, block_number, &hist_txs)
.expect("Failed to compute history root during block production.")
.0
});
Expand Down Expand Up @@ -241,7 +241,7 @@ pub fn next_skip_block(
let history_root = config.history_root.clone().unwrap_or_else(|| {
blockchain
.history_store
.add_to_history(&mut txn, Policy::epoch_at(block_number), &hist_txs)
.add_to_history(&mut txn, block_number, &hist_txs)
.expect("Failed to compute history root during block production.")
.0
});
Expand Down Expand Up @@ -388,7 +388,7 @@ pub fn next_macro_block_proposal(

macro_block.header.history_root = blockchain
.history_store
.add_to_history(&mut txn, Policy::epoch_at(block_number), &hist_txs)
.add_to_history(&mut txn, block_number, &hist_txs)
.expect("Failed to compute history root during block production.")
.0;

Expand Down

0 comments on commit c55f9f1

Please sign in to comment.