From 561db962031cd296368bb706baceb7c58b979ade Mon Sep 17 00:00:00 2001 From: green Date: Tue, 20 Aug 2024 10:34:10 +0200 Subject: [PATCH] Apply suggestion from the PR --- crates/fuel-core/src/combined_database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fuel-core/src/combined_database.rs b/crates/fuel-core/src/combined_database.rs index f639a2e7718..9659102f988 100644 --- a/crates/fuel-core/src/combined_database.rs +++ b/crates/fuel-core/src/combined_database.rs @@ -254,13 +254,13 @@ impl CombinedDatabase { let gas_price_chain_height = self.gas_price().latest_height_from_metadata()?; - let gas_price_rollbacked = gas_price_chain_height.is_none() + let gas_price_roll_backed = gas_price_chain_height.is_none() || gas_price_chain_height.expect("We checked height before") == target_block_height; if on_chain_height == target_block_height && off_chain_height == target_block_height - && gas_price_rollbacked + && gas_price_roll_backed { break; }