Scheduled update 225000

This commit is contained in:
jl777
2017-02-19 10:29:32 +02:00
parent 755c2b0044
commit 86ad1cb1a0
2 changed files with 3 additions and 13 deletions

View File

@@ -700,7 +700,7 @@ int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
komodo_chosennotary(&nid,height-i,_pubkey33);
if ( nid == notaryid ) //komodo_minerid(height-i,_pubkey33)
{
if ( (1) && notaryid > 0 )
if ( (0) && notaryid > 0 )
fprintf(stderr,"ht.%d notaryid.%d already mined -i.%d nid.%d\n",height,notaryid,i,nid);
if ( height > 225000 )
return(-1);

View File

@@ -171,18 +171,8 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
for (i=0; i<66; i++)
printf("%d ",mids[i]);
printf(" minerids from ht.%d\n",height);
if ( notaryid == -1 )
{
sleep(3);
komodo_chosennotary(&notaryid,height,pubkey33);
if ( notaryid >= 0 )
{
flag = komodo_eligiblenotary(pubkeys,mids,&nonzpkeys,height);
printf("found notaryid.%d flag.%d\n",notaryid,flag);
return(true);
}
}
return error("CheckProofOfWork(): hash doesn't match nBits");
if ( notaryid >= 0 )
return error("CheckProofOfWork(): hash doesn't match nBits");
}
}
return true;