This commit is contained in:
jl777
2016-10-17 14:53:48 -03:00
parent edea78beeb
commit 07a7605985

View File

@@ -58,7 +58,8 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
int32_t komodo_blockcheck(CBlock *block,uint32_t *nBitsp)
{
if ( block->GetHeight() <= NOTARIZED_HEIGHT )
CBlockIndex *bindex = new CBlockIndex((CBlockHeader*)&block);
if ( bindex->GetHeight() <= NOTARIZED_HEIGHT )
return(-1);
// 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS
// -1 -> invalid, ie, prior to notarized block