From 00a67a066d2f6f846f44a872e204cc2a31833fd1 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 22 Jul 2024 12:27:28 +0200 Subject: [PATCH] chore: rm comments about redundant checks (#9698) --- crates/engine/tree/src/tree/mod.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/engine/tree/src/tree/mod.rs b/crates/engine/tree/src/tree/mod.rs index b595d90cc1..a353883da5 100644 --- a/crates/engine/tree/src/tree/mod.rs +++ b/crates/engine/tree/src/tree/mod.rs @@ -953,17 +953,6 @@ where } InsertPayloadOk::Inserted(BlockStatus::Disconnected { .. }) | InsertPayloadOk::AlreadySeen(BlockStatus::Disconnected { .. }) => { - // TODO: isn't this check redundant? - // check if the block's parent is already marked as invalid - // if let Some(status) = self - // .check_invalid_ancestor_with_head(block.parent_hash, block.hash()) - // .map_err(|error| { - // InsertBlockError::new(block, InsertBlockErrorKind::Provider(error)) - // })? - // { - // return Ok(status) - // } - // not known to be invalid, but we don't know anything else PayloadStatusEnum::Syncing }