-pubkey fix

This commit is contained in:
jl777
2016-10-03 10:11:03 -03:00
parent 5645d1115a
commit c939721cee
2 changed files with 2 additions and 2 deletions

View File

@@ -3040,7 +3040,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
// Check proof of work
if (block.nBits != GetNextWorkRequired(pindexPrev, &block, consensusParams))
{
cout << block.nBits << "block vs. " << GetNextWorkRequired(pindexPrev, &block, consensusParams) << endl;
cout << block.nBits << " block.nBits vs. calc " << GetNextWorkRequired(pindexPrev, &block, consensusParams) << endl;
return state.DoS(100, error("%s: incorrect proof of work", __func__),
REJECT_INVALID, "bad-diffbits");
}

View File

@@ -367,7 +367,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
pblock->hashReserved = uint256();
UpdateTime(pblock, Params().GetConsensus(), pindexPrev);
extern int32_t IS_KOMODO_NOTARY;
if ( IS_KOMODO_NOTARY != 0 )
if ( 0 && IS_KOMODO_NOTARY != 0 )
pblock->nBits = KOMODO_MINDIFF_NBITS;
else pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus());
pblock->nSolution.clear();