From 84b0ec5327044a730a99e8d990724f650c337072 Mon Sep 17 00:00:00 2001 From: Evgeny Fomin Date: Thu, 29 Aug 2024 11:40:10 +0200 Subject: [PATCH] qfix --- merk/src/estimated_costs/worst_case_costs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merk/src/estimated_costs/worst_case_costs.rs b/merk/src/estimated_costs/worst_case_costs.rs index 0f50c75a..9ae6c2b3 100644 --- a/merk/src/estimated_costs/worst_case_costs.rs +++ b/merk/src/estimated_costs/worst_case_costs.rs @@ -211,7 +211,7 @@ pub fn add_worst_case_merk_propagate( cost.storage_cost.replaced_bytes += nodes_updated * MERK_BIGGEST_VALUE_SIZE; cost.storage_loaded_bytes += nodes_updated as u64 * (MERK_BIGGEST_VALUE_SIZE + MERK_BIGGEST_KEY_SIZE) as u64; - cost.seek_count += nodes_updated as u32; + cost.seek_count += nodes_updated; cost.hash_node_calls += nodes_updated * 2; Ok(()) }