test
This commit is contained in:
@@ -533,10 +533,10 @@ void komodo_disconnect(CBlockIndex *pindex,CBlock& block)
|
|||||||
int32_t komodo_heightnotary(int32_t height,uint8_t *pubkey33)
|
int32_t komodo_heightnotary(int32_t height,uint8_t *pubkey33)
|
||||||
{
|
{
|
||||||
// -1 if not notary, 0 if notary, 1 if special notary
|
// -1 if not notary, 0 if notary, 1 if special notary
|
||||||
int32_t i,notaryid,modval = -1;
|
int32_t notaryid,modval = -1;
|
||||||
for (i=0; i<33; i++)
|
//for (i=0; i<33; i++)
|
||||||
printf("%02x",pubkey33[i]);
|
// printf("%02x",pubkey33[i]);
|
||||||
printf(" komodo_heightnotary.%d notaryid.%d mod.%d\n",height,notaryid,modval);
|
//printf(" komodo_heightnotary.%d notaryid.%d mod.%d\n",height,notaryid,modval);
|
||||||
if ( (notaryid= komodo_notaryfind(pubkey33)) >= 0 )
|
if ( (notaryid= komodo_notaryfind(pubkey33)) >= 0 )
|
||||||
modval = ((height % KOMODO_NUMNOTARIES) == notaryid);
|
modval = ((height % KOMODO_NUMNOTARIES) == notaryid);
|
||||||
else return(-1);
|
else return(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user