Test
This commit is contained in:
@@ -1278,11 +1278,14 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height)
|
||||
bhash = UintToArith256(hash);
|
||||
possible = komodo_block2pubkey33(pubkey33,pblock);
|
||||
//fprintf(stderr,"height.%d slowflag.%d possible.%d cmp.%d\n",height,slowflag,possible,bhash > bnTarget);
|
||||
if ( height == 0 && slowflag != 0 ) // we need to assume all prior height is in the block index
|
||||
if ( height == 0 )
|
||||
{
|
||||
//if ( (pprev= mapBlockIndex[pblock->hashPrevBlock]) != 0 )
|
||||
// height = pprev->nHeight + 1;
|
||||
return(0);
|
||||
if ( slowflag != 0 )
|
||||
return(0);
|
||||
if ( (pprev= mapBlockIndex[pblock->hashPrevBlock]) != 0 )
|
||||
height = pprev->nHeight + 1;
|
||||
if ( height == 0 )
|
||||
return(0);
|
||||
}
|
||||
if ( (ASSETCHAINS_SYMBOL[0] != 0 || height > 792000) && bhash > bnTarget )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user