This commit is contained in:
jl777
2018-04-13 17:25:51 +03:00
parent a080f9fcfe
commit 6511626015

View File

@@ -728,7 +728,7 @@ 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 || pindex->pubkey33[0] == 0xff) )
return;
printf("pindex.%d komodo_pindex_init notary.%d from height.%d\n",pindex->nHeight,pindex->notaryid,height);
//printf("pindex.%d komodo_pindex_init notary.%d from height.%d\n",pindex->nHeight,pindex->notaryid,height);
pindex->notaryid = -1;
if ( pindex->pubkey33[0] != 2 && pindex->pubkey33[0] != 3 && pindex->pubkey33[0] != 0xff )
{
@@ -740,7 +740,7 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height)
komodo_block2pubkey33(pindex->pubkey33,block);
for (i=0; i<33; i++)
fprintf(stderr,"%02x",pindex->pubkey33[i]);
fprintf(stderr," set pubkey at height %d/%d\n",pindex->nHeight,height);
fprintf(stderr," set pubkey at height %d/%d tip.%d\n",pindex->nHeight,height,chainActive.Tip()->nHeight);
}
}
if ( (pindex->pubkey33[0] == 2 || pindex->pubkey33[0] == 3) && pindex->nHeight >= 0 && (num= komodo_notaries(pubkeys,(int32_t)pindex->nHeight,(uint32_t)pindex->nTime)) > 0 )