From 2c7bd4fb6b7881f25ca554aa514615a147223442 Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Tue, 26 Sep 2023 12:49:31 +0200 Subject: [PATCH] min difficulty should not list bad blocks --- .../core/src/base_node/comms_interface/inbound_handlers.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/base_layer/core/src/base_node/comms_interface/inbound_handlers.rs b/base_layer/core/src/base_node/comms_interface/inbound_handlers.rs index 710990bdb1..d2c2935928 100644 --- a/base_layer/core/src/base_node/comms_interface/inbound_handlers.rs +++ b/base_layer/core/src/base_node/comms_interface/inbound_handlers.rs @@ -514,12 +514,6 @@ where B: BlockchainBackend + 'static PowAlgorithm::Sha3x => sha3x_difficulty(&new_block.header)?, }; if achieved < min_difficulty { - self.blockchain_db - .add_bad_block( - new_block.header.hash(), - self.blockchain_db.get_chain_metadata().await?.height_of_longest_chain(), - ) - .await?; return Err(CommsInterfaceError::InvalidBlockHeader( BlockHeaderValidationError::ProofOfWorkError(PowError::AchievedDifficultyBelowMin), ));