This commit is contained in:
jl777
2017-02-02 16:27:17 +02:00
parent c062116c58
commit 42b84cdf6f

View File

@@ -648,7 +648,6 @@ 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];
komodo_chosennotary(&notaryid,height,_pubkey33);
if ( height >= 34000 && notaryid >= 0 )
{
if ( height < 79693 )
@@ -658,7 +657,8 @@ int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
else limit = 66;
for (i=1; i<limit; i++)
{
if ( komodo_minerid(height-i,0) == notaryid )
komodo_chosennotary(&notaryid,height-i,_pubkey33);
if ( komodo_minerid(height-i,_pubkey33) == notaryid )
{
//fprintf(stderr,"ht.%d notaryid.%d already mined -i.%d\n",height,notaryid,i);
return(-1);