From 5d4c72403abb057bd3749af2ebbe9424a1c58084 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 14 Aug 2024 11:40:50 +0300 Subject: [PATCH] Remove unnecessary condition --- substrate/client/db/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/substrate/client/db/src/lib.rs b/substrate/client/db/src/lib.rs index 1cdc68d7effc9..3fcc1935f267b 100644 --- a/substrate/client/db/src/lib.rs +++ b/substrate/client/db/src/lib.rs @@ -1709,7 +1709,6 @@ impl Backend { ); } } else if operation.create_gap && - number > best_num + One::one() && number > One::one() && self.blockchain.header(parent_hash)?.is_none() { let gap = (best_num + One::one(), number - One::one());