Test
This commit is contained in:
@@ -725,7 +725,7 @@ uint32_t komodo_heightstamp(int32_t height)
|
||||
void komodo_pindex_init(CBlockIndex *pindex,int32_t height)
|
||||
{
|
||||
int32_t i,num; uint8_t pubkeys[64][33]; CBlock block;
|
||||
if ( pindex->notaryid >= 0 && (pindex->pubkey33[0] == 2 || pindex->pubkey33[0] == 3) )
|
||||
if ( pindex->notaryid >= 0 && (pindex->pubkey33[0] == 2 || pindex->pubkey33[0] == 3 || pindex->pubkey33[0] == 0xff) )
|
||||
return;
|
||||
printf("pindex.%d komodo_pindex_init notary.%d from height.%d\n",pindex->nHeight,pindex->notaryid,height);
|
||||
pindex->notaryid = -1;
|
||||
@@ -815,7 +815,7 @@ int32_t komodo_eligiblenotary(uint8_t pubkeys[66][33],int32_t *mids,int32_t *non
|
||||
}
|
||||
else
|
||||
{
|
||||
pindex_komodo_init(pindex,height-i);
|
||||
komodo_pindex_init(pindex,height-i);
|
||||
//komodo_index2pubkey33(pubkey33,pindex,height-i);
|
||||
memcpy(pubkeys[i],pindex->pubkey33,33);
|
||||
if ( (mids[i]= komodo_minerid(height-i,pubkey33)) >= 0 )
|
||||
|
||||
@@ -194,12 +194,17 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
||||
for (i=31; i>=0; 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));
|
||||
if ( pindex != 0 )
|
||||
{
|
||||
pindex->notaryid = -1;
|
||||
komodo_pindex_init(pindex,height);
|
||||
}
|
||||
for (i=0; i<33; i++)
|
||||
printf("%02x",pubkey33[i]);
|
||||
printf(" <- pubkey\n");
|
||||
for (i=0; i<66; i++)
|
||||
printf("%d ",mids[i]);
|
||||
printf(" minerids from ht.%d\n",height);
|
||||
printf(" minerids from ht.%d pindex.%p\n",height,pindex);
|
||||
//if ( KOMODO_LOADINGBLOCKS == 0 )
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user