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