From 337812104dea5d4664d6ffd91a59aeb256f3e316 Mon Sep 17 00:00:00 2001 From: Peter Bushnell Date: Wed, 19 May 2021 10:18:56 +0100 Subject: [PATCH] Skip merkle root check on startup --- src/validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 5a644efebf..aec38a6b16 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4108,7 +4108,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P // redundant with the call in AcceptBlockHeader. if (!fIsFakeNet && fCheckPOS && !pos::ContextualCheckProofOfStake(block, consensusParams, pcustomcsview.get())) return state.Invalid(ValidationInvalidReason::BLOCK_INVALID_HEADER, false, REJECT_INVALID, "high-hash", "proof of stake failed"); - +/* // Check the merkle root. // block merkle root is delayed to ConnectBlock to ensure account changes if (fCheckMerkleRoot && block.height < consensusParams.EunosHeight) { @@ -4123,7 +4123,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P if (mutated) return state.Invalid(ValidationInvalidReason::BLOCK_MUTATED, false, REJECT_INVALID, "bad-txns-duplicate", "duplicate transaction"); } - +*/ // All potential-corruption validation must be done before we do any // transaction validation, as otherwise we may mark the header as invalid // because we receive the wrong transactions for it.