This commit is contained in:
jl777
2017-02-19 08:14:49 +02:00
parent 9661ca22bb
commit edcf9a39c3

View File

@@ -685,7 +685,8 @@ int32_t komodo_minerids(uint8_t *minerids,int32_t height,int32_t width)
int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
{
int32_t i,notaryid,minerid,limit; uint8_t _pubkey33[33];
int32_t i,notaryid,minerid,limit,nid; uint8_t _pubkey33[33];
komodo_chosennotary(&notaryid,height,_pubkey33);
if ( height >= 34000 && notaryid >= 0 )
{
if ( height < 79693 )
@@ -695,10 +696,10 @@ int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
else limit = 66;
for (i=1; i<limit; i++)
{
komodo_chosennotary(&notaryid,height-i,_pubkey33);
komodo_chosennotary(&nid,height-i,_pubkey33);
if ( komodo_minerid(height-i,_pubkey33) == notaryid )
{
//fprintf(stderr,"ht.%d notaryid.%d already mined -i.%d\n",height,notaryid,i);
fprintf(stderr,"ht.%d notaryid.%d already mined -i.%d nid.%d\n",height,notaryid,i,nid);
return(-1);
}
}