Test
This commit is contained in:
@@ -1472,14 +1472,14 @@ int32_t komodo_is_PoSblock(int32_t slowflag,int32_t height,CBlock *pblock,arith_
|
|||||||
bnTarget = komodo_PoWtarget(&PoSperc,bnTarget,height,ASSETCHAINS_STAKED);
|
bnTarget = komodo_PoWtarget(&PoSperc,bnTarget,height,ASSETCHAINS_STAKED);
|
||||||
if ( bhash < bnTarget )
|
if ( bhash < bnTarget )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"ht.%d isPoS but meets PoW diff!\n",height);
|
//fprintf(stderr,"ht.%d isPoS but meets PoW diff!\n",height);
|
||||||
isPoS = 0;
|
isPoS = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//else return(-1);
|
//else return(-1);
|
||||||
}
|
}
|
||||||
fprintf(stderr,"slow.%d ht.%d isPoS.%d\n",slowflag,height,isPoS);
|
//fprintf(stderr,"slow.%d ht.%d isPoS.%d\n",slowflag,height,isPoS);
|
||||||
return(isPoS != 0);
|
return(isPoS != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1796,6 +1796,8 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height)
|
|||||||
fprintf(stderr,"unexpected negative is_PoSblock.%d\n",is_PoSblock);
|
fprintf(stderr,"unexpected negative is_PoSblock.%d\n",is_PoSblock);
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
else if ( ASSETCHAINS_STAKED != 0 )
|
||||||
|
failed = 0;
|
||||||
}
|
}
|
||||||
if ( failed == 0 && ASSETCHAINS_COMMISSION != 0 ) //ASSETCHAINS_OVERRIDE_PUBKEY33[0] != 0 )
|
if ( failed == 0 && ASSETCHAINS_COMMISSION != 0 ) //ASSETCHAINS_OVERRIDE_PUBKEY33[0] != 0 )
|
||||||
{
|
{
|
||||||
@@ -1824,7 +1826,7 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height)
|
|||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stderr,"komodo_checkPOW possible.%d slowflag.%d ht.%d notaryid.%d failed.%d\n",possible,slowflag,height,notaryid,failed);
|
//fprintf(stderr,"komodo_checkPOW possible.%d slowflag.%d ht.%d notaryid.%d failed.%d\n",possible,slowflag,height,notaryid,failed);
|
||||||
if ( failed != 0 && possible == 0 && notaryid < 0 )
|
if ( failed != 0 && possible == 0 && notaryid < 0 )
|
||||||
return(-1);
|
return(-1);
|
||||||
else return(0);
|
else return(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user