From eb7171f5609479f9f3adcf5e231006f1efe7624c Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 26 Mar 2018 06:05:56 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index a94ec3d77..f0b88d065 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -730,22 +730,17 @@ int8_t komodo_minerid(int32_t height,uint8_t *pubkey33) int32_t num,i,numnotaries; CBlockIndex *pindex; uint32_t timestamp=0; uint8_t _pubkey33[33],pubkeys[64][33]; if ( pubkey33 == 0 && (pindex= chainActive[height]) != 0 ) { - if ( pindex->pubkey33[0] == 0 ) + timestamp = pindex->GetBlockTime(); + if ( pubkey33 == 0 ) { - pindex->notaryid = -1; - timestamp = pindex->GetBlockTime(); - if ( pubkey33 == 0 ) - pubkey33 = _pubkey33; + pubkey33 = _pubkey33; komodo_index2pubkey33(pubkey33,pindex,height); - if ( (num= komodo_notaries(pubkeys,height,timestamp)) > 0 ) - { - for (i=0; inotaryid = i; - return(i); - } - } + } + if ( (num= komodo_notaries(pubkeys,height,timestamp)) > 0 ) + { + for (i=0; i