From 067486c4821c642ba6d710640b30e59987dd1760 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 18 Nov 2016 10:40:50 -0300 Subject: [PATCH] test --- src/komodo_notary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index 08042abac..f27231a16 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -124,7 +124,7 @@ void komodo_notarysinit(int32_t origheight,uint8_t pubkeys[64][33],int32_t num) if ( Pubkeys == 0 ) Pubkeys = (struct knotaries_entry *)calloc(KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP,sizeof(*Pubkeys)); memset(&N,0,sizeof(N)); - if ( height > 0 ) + if ( origheight > 0 ) { height = (origheight + KOMODO_ELECTION_GAP/2); height /= KOMODO_ELECTION_GAP;