From 493a9ec75152fab5a6982cd3fd63c5892d3263ce Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Oct 2016 12:37:17 -0300 Subject: [PATCH] test --- src/pow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index 730cfce2b..fc5d8b3fc 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -124,12 +124,12 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in //fprintf(stderr," height.%d special.%d nonz.%d\n",height,special,nonz); if ( nonz == 0 ) return(true); - if ( special < 0 ) // special notary id == (height % numnotaries) + if ( special > 0 ) // special notary id == (height % numnotaries) { if (UintToArith256(hash) <= bnTarget) // accept normal diff return true; bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow); - } else bnTarget /= 8; + } //else bnTarget /= 8; } // Check range if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit))