From 36f1b84beef8ab6eca19a109568768c690293631 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 13 Mar 2017 14:10:53 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 168d11617..5df0e1393 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -614,7 +614,7 @@ void komodo_bannedset(uint256 *array,int32_t max) array[i] = uint256S(banned_txids[i]); if ( i != max ) printf("banned txid array error i.%d != max.%d\n",i,max); - else printf("set %d banned txids\n",max); + //else printf("set %d banned txids\n",max); } int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above block is valid pax pricing diff --git a/src/main.cpp b/src/main.cpp index 78aa9f6dd..7e28ef742 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3206,7 +3206,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta int nHeight = pindexPrev->nHeight+1; // Check proof of work - if (block.nBits != GetNextWorkRequired(pindexPrev, &block, consensusParams)) + if ( (nHeight < 235300 || nHeight > 236000) && block.nBits != GetNextWorkRequired(pindexPrev, &block, consensusParams)) { cout << block.nBits << " block.nBits vs. calc " << GetNextWorkRequired(pindexPrev, &block, consensusParams) << endl; return state.DoS(100, error("%s: incorrect proof of work", __func__),