mindiff exception for notaries

This commit is contained in:
jl777
2016-09-23 10:30:15 -03:00
parent 1e613927be
commit 50027f0631
10 changed files with 58 additions and 26 deletions

View File

@@ -366,7 +366,10 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
pblock->hashPrevBlock = pindexPrev->GetBlockHash();
pblock->hashReserved = uint256();
UpdateTime(pblock, Params().GetConsensus(), pindexPrev);
pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus());
extern int32_t IS_KOMODO_NOTARY;
if ( IS_KOMODO_NOTARY != 0 )
pblock->nBits = KOMODO_MINDIFF_NBITS;
else pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus());
pblock->nSolution.clear();
pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]);