From ef5b15b0de3c7e556afa8e9aec791536d3a51f00 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Oct 2016 10:26:44 -0300 Subject: [PATCH] test --- src/komodo_notary.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index d30942f0b..bd7b4ce47 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -109,7 +109,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height) if ( (htind= KOMODO_PUBKEYS_HEIGHT(height) / KOMODO_ELECTION_GAP) == 1 ) htind = 0; pthread_mutex_lock(&komodo_mutex); - n = Pubkeys[htind].num; + n = Pubkeys[htind].numnotaries; HASH_ITER(hh,Pubkeys[htind].Notaries,kp,tmp) { if ( kp->notaryid < n ) @@ -230,12 +230,12 @@ void komodo_init() iguana_initQ(&PendingsQ,(char *)"Pendings"); pthread_mutex_init(&komodo_mutex,NULL); decode_hex(NOTARY_PUBKEY33,33,(char *)NOTARY_PUBKEY.c_str()); - n = (int32_t)(sizeof(Notaries)/sizeof(*Notaries)); + n = (int32_t)(sizeof(Notaries_genesis)/sizeof(*Notaries_genesis)); for (k=0; k