test
This commit is contained in:
@@ -642,8 +642,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;
|
int32_t i,notaryid,minerid,limit; uint8_t _pubkey33[33];
|
||||||
komodo_chosennotary(¬aryid,height,pubkey33);
|
komodo_chosennotary(¬aryid,height,_pubkey33);
|
||||||
if ( height >= 34000 && notaryid >= 0 )
|
if ( height >= 34000 && notaryid >= 0 )
|
||||||
{
|
{
|
||||||
if ( height < 79693 )
|
if ( height < 79693 )
|
||||||
@@ -653,7 +653,7 @@ int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
|
|||||||
else limit = 66;
|
else limit = 66;
|
||||||
for (i=1; i<limit; i++)
|
for (i=1; i<limit; i++)
|
||||||
{
|
{
|
||||||
if ( komodo_minerid(height-i,pubkey33) == notaryid )
|
if ( komodo_minerid(height-i,0) == 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\n",height,notaryid,i);
|
||||||
return(-1);
|
return(-1);
|
||||||
|
|||||||
@@ -168,7 +168,9 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
printf("%02x",pubkey33[i]);
|
printf("%02x",pubkey33[i]);
|
||||||
printf(" <- pubkey\n");
|
printf(" <- pubkey\n");
|
||||||
for (i=0; i<66; i++)
|
for (i=0; i<66; i++)
|
||||||
|
{
|
||||||
printf("%d ",komodo_minerid(height-i,pubkey33));
|
printf("%d ",komodo_minerid(height-i,pubkey33));
|
||||||
|
}
|
||||||
printf(" minerids from ht.%d\n",height);
|
printf(" minerids from ht.%d\n",height);
|
||||||
if ( height < 90000 || (height > 180000 && KOMODO_REWIND == 0) )
|
if ( height < 90000 || (height > 180000 && KOMODO_REWIND == 0) )
|
||||||
return error("CheckProofOfWork(): hash doesn't match nBits");
|
return error("CheckProofOfWork(): hash doesn't match nBits");
|
||||||
|
|||||||
Reference in New Issue
Block a user