Skip to content

Commit

Permalink
qfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fominok committed Aug 29, 2024
1 parent 0866faf commit 4313970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merk/src/estimated_costs/worst_case_costs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub fn add_worst_case_merk_propagate(
// todo: verify these numbers
cost.storage_cost.replaced_bytes += nodes_updated * MERK_BIGGEST_VALUE_SIZE;
cost.storage_loaded_bytes +=
(nodes_updated * (MERK_BIGGEST_VALUE_SIZE + MERK_BIGGEST_KEY_SIZE)) as u64;
nodes_updated as u64 * (MERK_BIGGEST_VALUE_SIZE + MERK_BIGGEST_KEY_SIZE) as u64;
cost.seek_count += nodes_updated as u32;
cost.hash_node_calls += nodes_updated * 2;
Ok(())
Expand Down

0 comments on commit 4313970

Please sign in to comment.