From 0df0f9d1c8b0723e1a1575eeea185f4925fd90a7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 14 Nov 2016 12:59:13 -0300 Subject: [PATCH] test --- src/komodo_notary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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