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

@@ -16,12 +16,14 @@
#include "sodium.h"
extern int32_t "C" komodo_is_notaryblock(void *pblock);
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params)
{
unsigned int nProofOfWorkLimit = UintToArith256(params.powLimit).GetCompact();
// Genesis block
if (pindexLast == NULL)
if (pindexLast == NULL || komodo_is_notaryblock(pblock) != 0 )
return nProofOfWorkLimit;
// Find the first block in the averaging interval