From ace61bc19aa807a7037d55a89186acb296587033 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 16:33:27 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 3bc68471a..93c0306d1 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -733,7 +733,12 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height) { memset(pindex->pubkey33,0,33); if ( komodo_blockload(block,pindex) == 0 ) + { komodo_block2pubkey33(pindex->pubkey33,block); + for (i=0; i<33; i++) + fprintf(stderr,"%02x",pindex->pubkey33[i]); + fprintf(stderr," set pubkey at height %d/%d\n",pindex->nHeight,height); + } } if ( (pindex->pubkey33[0] == 2 || pindex->pubkey33[0] == 3) && pindex->nHeight >= 0 && (num= komodo_notaries(pubkeys,(int32_t)pindex->nHeight,(uint32_t)pindex->nTime)) > 0 ) { @@ -745,6 +750,12 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height) break; } } + if ( i == num ) + { + for (i=0; i<33; i++) + fprintf(stderr,"%02x",pindex->pubkey33[i]); + fprintf(stderr," unmatched pubkey at height %d/%d\n",pindex->nHeight,height); + } } }