diff --git a/src/komodo_notary.h b/src/komodo_notary.h index e8cd2a410..1cf14a749 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -135,6 +135,8 @@ void komodo_notarysinit(int32_t height,uint8_t pubkeys[64][33],int32_t num) return; hwmheight = height; memset(&N,0,sizeof(N)); + if ( (htind= KOMODO_PUBKEYS_HEIGHT(height) / KOMODO_ELECTION_GAP) == 0 ) + htind = 1; pthread_mutex_lock(&komodo_mutex); for (k=0; k