From 8a0b06f603ad336b5098ea4950a6f15ff02614bf Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Mar 2018 20:22:23 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 4edaa76de..6f8357985 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -615,7 +615,11 @@ 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; + if ( height2 >= 0 ) + return(height2); + } if ( block->vtx[0].vin.size() > 0 ) { #ifdef KOMODO_ZCASH