From 9528d37f570b25d5b7fb030dafff58b7c6da377d Mon Sep 17 00:00:00 2001 From: jackzhhuang Date: Tue, 7 Jan 2025 16:23:04 +0800 Subject: [PATCH] remove unused if block --- chain/src/chain.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/chain/src/chain.rs b/chain/src/chain.rs index 9ccf886e66..4b72772df0 100644 --- a/chain/src/chain.rs +++ b/chain/src/chain.rs @@ -1527,9 +1527,6 @@ impl BlockChain { let mut new_tips = vec![]; for hash in tips { - if !self.has_dag_block(hash)? { - continue; - } if !dag.check_ancestor_of(hash, new_tip_block.id())? { new_tips.push(hash); }