From bf484c7a15274fbb84f4f6168b873e7e6d429369 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 14 Nov 2016 13:15:43 -0300 Subject: [PATCH] test --- src/komodo_notary.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index 7e5899b86..b43973b4c 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -138,8 +138,7 @@ void komodo_notarysinit(int32_t height,uint8_t pubkeys[64][33],int32_t num) static int32_t hwmheight; int32_t k,i,htind,nonz; struct knotary_entry *kp; struct knotaries_entry N; memset(&N,0,sizeof(N)); - if ( (htind= KOMODO_PUBKEYS_HEIGHT(height) / KOMODO_ELECTION_GAP) == 0 ) - htind = 1; + htind = (KOMODO_PUBKEYS_HEIGHT(height) / KOMODO_ELECTION_GAP) + 1; pthread_mutex_lock(&komodo_mutex); for (k=0; k