From 488e61e85200e81c6fa64cccf490cbcd0de2ac4d Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 26 Aug 2016 14:09:25 +1200 Subject: [PATCH] Undo debugging change from 5be6abbf84c46e8fc4c8ef9be987a44de22d0d05 This was unintentionally committed, and caused Equihash verification of blocks without parents to be skipped. This only affects the genesis block on the test network, but also causes the "time verifyequihash" benchmark to incorrectly appear instantaneous. --- src/pow.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index 41a60f672..9371863c4 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -96,10 +96,6 @@ unsigned int CalculateNextWorkRequired(uint32_t nBits, int64_t nLastBlockTime, i bool CheckEquihashSolution(const CBlockHeader *pblock, const CChainParams& params) { - // Don't validate genesis - if (pblock->hashPrevBlock.IsNull()) - return true; - unsigned int n = params.EquihashN(); unsigned int k = params.EquihashK();