This commit is contained in:
jl777
2018-04-13 22:24:51 +03:00
parent 442215b401
commit cb19d181a5
2 changed files with 9 additions and 4 deletions

View File

@@ -885,9 +885,8 @@ int32_t komodo_minerids(uint8_t *minerids,int32_t height,int32_t width) // depre
int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t height,uint8_t pubkey33[33],uint32_t timestamp)
{
int32_t i,j,notaryid=0,minerid,limit,nid; uint8_t destpubkey33[33];
//if ( height >= 225000 )
komodo_chosennotary(&notaryid,height,pubkey33,timestamp);
if ( height >= 700000 )
if ( height >= 82000 )
{
if ( notaryid >= 0 )
{
@@ -896,7 +895,7 @@ int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t heigh
if ( mids[i] == notaryid )
{
for (j=0; j<66; j++)
printf("%d ",mids[j]);
fprintf(stderr,"%d ",mids[j]);
fprintf(stderr,"ht.%d repeat notaryid.%d in mids[%d]\n",height,notaryid,i);
if ( height > 792000 )
return(-1);
@@ -921,7 +920,7 @@ int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t heigh
if ( nid == notaryid )
{
for (j=0; j<66; j++)
printf("%d ",mids[j]);
fprintf(stderr,"%d ",mids[j]);
fprintf(stderr,"ht.%d repeat mids[%d] nid.%d notaryid.%d\n",height-i,i,nid,notaryid);
if ( height > 225000 )
return(-1);

View File

@@ -218,6 +218,12 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
if ( height > 792000 )
return false;
}
if ( KOMODO_LOADINGBLOCKS == 0 )
{
for (i=0; i<66; i++)
fprintf(stderr,"%d ",mids[i]);
fprintf(stderr,"mids ht.%d\n",height);
}
return true;
}