Test
This commit is contained in:
@@ -904,7 +904,7 @@ int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t heigh
|
|||||||
if ( nid == notaryid )
|
if ( nid == notaryid )
|
||||||
{
|
{
|
||||||
//if ( (0) && notaryid > 0 )
|
//if ( (0) && notaryid > 0 )
|
||||||
fprintf(stderr,"ht.%d repeat notaryid.%d in mids[%d]\n",height,mids[0],i);
|
fprintf(stderr,"ht.%d repeat notaryid.%d in mids[%d] nid.%d notaryid.%d\n",height,mids[0],i,nid,notaryid);
|
||||||
if ( height > 225000 )
|
if ( height > 225000 )
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,11 +146,11 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
}
|
}
|
||||||
if ( height > 34000 && ASSETCHAINS_SYMBOL[0] == 0 ) // 0 -> non-special notary
|
if ( height > 34000 && ASSETCHAINS_SYMBOL[0] == 0 ) // 0 -> non-special notary
|
||||||
{
|
{
|
||||||
if ( (pindex= komodo_chainactive(height)) != 0 )
|
/*if ( (pindex= komodo_chainactive(height)) != 0 )
|
||||||
{
|
{
|
||||||
komodo_pindex_init(pindex,height);
|
komodo_pindex_init(pindex,height);
|
||||||
memcpy(pubkey33,pindex->pubkey33,33);
|
memcpy(pubkey33,pindex->pubkey33,33);
|
||||||
}
|
}*/
|
||||||
special = komodo_chosennotary(¬aryid,height,pubkey33,timestamp);
|
special = komodo_chosennotary(¬aryid,height,pubkey33,timestamp);
|
||||||
for (i=0; i<33; i++)
|
for (i=0; i<33; i++)
|
||||||
{
|
{
|
||||||
@@ -200,11 +200,11 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
for (i=31; i>=0; i--)
|
for (i=31; i>=0; i--)
|
||||||
printf("%02x",((uint8_t *)&bnTarget)[i]);
|
printf("%02x",((uint8_t *)&bnTarget)[i]);
|
||||||
printf(" ht.%d special.%d notaryid.%d ht.%d mod.%d error\n",height,special,notaryid,height,(height % 35));
|
printf(" ht.%d special.%d notaryid.%d ht.%d mod.%d error\n",height,special,notaryid,height,(height % 35));
|
||||||
if ( pindex != 0 )
|
/*if ( pindex != 0 )
|
||||||
{
|
{
|
||||||
pindex->didinit = 0;
|
pindex->didinit = 0;
|
||||||
komodo_index2pubkey33(pubkey33,pindex,height);
|
komodo_index2pubkey33(pubkey33,pindex,height);
|
||||||
}
|
}*/
|
||||||
for (i=0; i<33; i++)
|
for (i=0; i<33; i++)
|
||||||
printf("%02x",pubkey33[i]);
|
printf("%02x",pubkey33[i]);
|
||||||
printf(" <- pubkey\n");
|
printf(" <- pubkey\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user