From 60e0c887c56347a983a7ac2ed6b1d15335654857 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 18 Nov 2016 05:11:56 -0300 Subject: [PATCH] test --- src/komodo_bitcoind.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 4d51f8df6..c212ef7bb 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -468,13 +468,13 @@ int8_t komodo_minerid(int32_t height) { static uint32_t depth; int32_t notaryid; CBlockIndex *pindex; uint8_t pubkey33[33]; - if ( depth < 3 && height <= komodo_currentheight() )//chainActive.Tip()->nHeight ) + if ( Minerids[height] >= -1 ) + { + printf("cached[%d] -> %d\n",height,Minerids[height]); + return(Minerids[height]); + } + if ( depth < 1 ) { - if ( Minerids[height] >= -1 ) - { - printf("cached[%d] -> %d\n",height,Minerids[height]); - return(Minerids[height]); - } if ( (pindex= chainActive[height]) != 0 ) { depth++;