From e1501755a4a7976364dce641e3ed617b0ff59b4c Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Mar 2018 19:30:33 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 8a3577941..4edaa76de 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -612,6 +612,7 @@ int32_t komodo_is_notarytx(const CTransaction& tx) int32_t komodo_block2height(CBlock *block) { + static uint32_t match,mismatch; int32_t i,n,height2=-1,height = 0; uint8_t *ptr; CBlockIndex *pindex; if ( (pindex= mapBlockIndex[block->GetHash()]) != 0 ) height2 = (int32_t)pindex->nHeight; @@ -639,7 +640,6 @@ int32_t komodo_block2height(CBlock *block) } if ( height != height2 ) { - static uint32_t match,mismatch; fprintf(stderr,"block2height height.%d vs height2.%d, match.%d mismatch.%d\n",height,height2,match,mismatch); mismatch++; if ( height2 >= 0 )