From df027c81193ae5ebc71a4ae35ecdeee718c1c059 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 14 Nov 2016 12:58:13 -0300 Subject: [PATCH] test --- src/komodo_notary.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index da95e5218..e8cd2a410 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -129,7 +129,11 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height) void komodo_notarysinit(int32_t height,uint8_t pubkeys[64][33],int32_t num) { + static int32_t hwmheight; int32_t k,i,htind; struct knotary_entry *kp; struct knotaries_entry N; + if ( height <= hwmheight ) + return; + hwmheight = height; memset(&N,0,sizeof(N)); pthread_mutex_lock(&komodo_mutex); for (k=0; kpubkey,pubkeys[k],33); kp->notaryid = k; HASH_ADD_KEYPTR(hh,N.Notaries,kp->pubkey,33,kp); - if ( height > 10000 ) + if ( height > 0 ) { for (i=0; i<33; i++) printf("%02x",pubkeys[k][i]);