This commit is contained in:
jl777
2016-11-21 20:09:33 -03:00
parent 0dfe3f3680
commit 40d3a54fc5
3 changed files with 4 additions and 4 deletions

View File

@@ -535,7 +535,7 @@ int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
komodo_chosennotary(&notaryid,height,pubkey33);
if ( height >= 34000 && notaryid >= 0 )
{
for (i=1; i<64; i++)
for (i=1; i<60; i++)
{
if ( komodo_minerid(height-i) == notaryid )
{

View File

@@ -480,7 +480,7 @@ void komodo_passport_iteration()
else refid = komodo_baseid(ASSETCHAINS_SYMBOL)+1; // illegal base -> baseid.-1 -> 0
//printf("PASSPORT %s refid.%d\n",ASSETCHAINS_SYMBOL,refid);
for (baseid=0; baseid<=32; baseid++)
{break;
{
sp = 0;
isrealtime = 0;
base = (char *)CURRENCIES[baseid];

View File

@@ -135,8 +135,8 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
special2 = komodo_is_special(height,pubkey33);
if ( special2 == -2 )
printf("height.%d special2.%d special.%d\n",height,special2,special);
if ( special2 == -2 || (height < 70000 && (special != 0 || special2 > 0)) ||
(height >= 70000 && special2 > 0) )
if ( special2 == -2 || (height < 80000 && (special != 0 || special2 > 0)) ||
(height >= 80000 && special2 > 0) )
{
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
flag = 1;