Scheduled upgrade at 225000

This commit is contained in:
jl777
2017-02-19 08:38:03 +02:00
parent 8c072c2d19
commit dae6126c5d

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