test
This commit is contained in:
@@ -274,9 +274,9 @@ 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
|
||||||
struct knotary_entry *kp; int32_t numnotaries,modval = -1;
|
struct knotary_entry *kp; int32_t numnotaries,modval = -1;
|
||||||
int32_t i; for (i=0; i<33; i++)
|
//int32_t i; for (i=0; i<33; i++)
|
||||||
printf("%02x",pubkey33[i]);
|
// printf("%02x",pubkey33[i]);
|
||||||
printf(" ht.%d\n",height);
|
//printf(" ht.%d\n",height);
|
||||||
|
|
||||||
pthread_mutex_lock(&komodo_mutex);
|
pthread_mutex_lock(&komodo_mutex);
|
||||||
HASH_FIND(hh,Pubkeys[height/KOMODO_ELECTION_GAP].Notaries,pubkey33,33,kp);
|
HASH_FIND(hh,Pubkeys[height/KOMODO_ELECTION_GAP].Notaries,pubkey33,33,kp);
|
||||||
|
|||||||
Reference in New Issue
Block a user