This commit is contained in:
jl777
2016-10-20 12:59:02 -03:00
parent 27e636064f
commit 53d500f566

View File

@@ -533,10 +533,10 @@ void komodo_disconnect(CBlockIndex *pindex,CBlock& block)
int32_t komodo_heightnotary(int32_t height,uint8_t *pubkey33)
{
// -1 if not notary, 0 if notary, 1 if special notary
int32_t i,notaryid,modval = -1;
for (i=0; i<33; i++)
printf("%02x",pubkey33[i]);
printf(" komodo_heightnotary.%d notaryid.%d mod.%d\n",height,notaryid,modval);
int32_t notaryid,modval = -1;
//for (i=0; i<33; i++)
// printf("%02x",pubkey33[i]);
//printf(" komodo_heightnotary.%d notaryid.%d mod.%d\n",height,notaryid,modval);
if ( (notaryid= komodo_notaryfind(pubkey33)) >= 0 )
modval = ((height % KOMODO_NUMNOTARIES) == notaryid);
else return(-1);