diff --git a/substrate/client/db/src/lib.rs b/substrate/client/db/src/lib.rs index 1cdc68d7effc..fb1ead826188 100644 --- a/substrate/client/db/src/lib.rs +++ b/substrate/client/db/src/lib.rs @@ -1710,7 +1710,7 @@ impl Backend { } } else if operation.create_gap && number > best_num + One::one() && - number > One::one() && self.blockchain.header(parent_hash)?.is_none() + self.blockchain.header(parent_hash)?.is_none() { let gap = (best_num + One::one(), number - One::one()); transaction.set(columns::META, meta_keys::BLOCK_GAP, &gap.encode());