Skip to content

Commit

Permalink
remove unused if block
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Jan 7, 2025
1 parent 5753b5b commit 9528d37
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9528d37

Please sign in to comment.