From db19b2aac5907818171dc9507ed35e5e307c59f3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 26 Mar 2018 05:49:03 +0300 Subject: [PATCH] Test --- src/komodo_notary.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index de93f57bd..1f9fce277 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -237,6 +237,11 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestam if ( htind >= KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP ) htind = (KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP) - 1; printf("Pubkeys.%p htind.%d vs max.%d\n",Pubkeys,htind,KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP); + if ( Pubkeys == 0 ) + { + komodo_init(height); + printf("Pubkeys.%p htind.%d vs max.%d\n",Pubkeys,htind,KOMODO_MAXBLOCKS / KOMODO_ELECTION_GAP); + } pthread_mutex_lock(&komodo_mutex); n = Pubkeys[htind].numnotaries; if ( 0 && ASSETCHAINS_SYMBOL[0] != 0 )