From dac1ef8881b0139a007750ad2db38c5aaa36f540 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Feb 2017 20:41:31 +0200 Subject: [PATCH] test --- src/komodo_bitcoind.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index c119ac5b9..6b309ce1b 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -616,7 +616,7 @@ int32_t komodo_electednotary(uint8_t *pubkey33,int32_t height); int8_t komodo_minerid(int32_t height,uint8_t *pubkey33) { int32_t num,i; CBlockIndex *pindex; uint8_t _pubkey33[33],pubkeys[64][33]; - /*if ( (pindex= chainActive[height]) != 0 ) + if ( (pindex= chainActive[height]) != 0 ) { if ( pubkey33 == 0 ) { @@ -629,13 +629,13 @@ int8_t komodo_minerid(int32_t height,uint8_t *pubkey33) if ( memcmp(pubkeys[i],pubkey33,33) == 0 ) return(i); } - }*/ + } return(komodo_electednotary(pubkey33,height)); } int32_t komodo_eligiblenotary(uint8_t pubkeys[66][33],int32_t *mids,int32_t *nonzpkeysp,int32_t height) { - int32_t i,duplicate; CBlockIndex *pindex; uint8_t pubkey33[33]; + int32_t i,j,duplicate; CBlockIndex *pindex; uint8_t pubkey33[33]; memset(mids,-1,sizeof(*mids)*66); pindex = komodo_chainactive(height); for (i=duplicate=0; i<66; i++)