This commit is contained in:
jl777
2016-10-03 11:32:30 -03:00
parent 76c0be99bc
commit 3d35aa5b13
5 changed files with 35 additions and 19 deletions

View File

@@ -16,14 +16,14 @@
#include "sodium.h"
int32_t komodo_is_notaryblock(uint8_t *pblock);
int32_t komodo_is_notaryblock(const CBlockHeader *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 || komodo_is_notaryblock((uint8_t *)pblock) != 0 )
if (pindexLast == NULL || komodo_is_notaryblock(pblock) != 0 )
return nProofOfWorkLimit;
// Find the first block in the averaging interval