From 72070c9477017320019edda2581c1a1d3527c7eb Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 26 Mar 2018 15:55:54 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index d79765e5c..34575f35d 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -923,8 +923,11 @@ uint64_t komodo_accrued_interest(int32_t *txheightp,uint32_t *locktimep,uint256 { uint64_t value; uint32_t tiptime=0,txheighttimep; CBlockIndex *pindex; if ( (pindex= chainActive[tipheight]) != 0 ) + { tiptime = (uint32_t)pindex->nTime; - else printf("cant find height[%d]\n",tipheight); + fprintf(stderr,"tipheight.%d -> %u\n",tipheight,tiptime); + } + else fprintf(stderr,"cant find height[%d]\n",tipheight); if ( (*locktimep= komodo_interest_args(&txheighttimep,txheightp,&tiptime,&value,hash,n)) != 0 ) { if ( (checkvalue == 0 || value == checkvalue) && (checkheight == 0 || *txheightp == checkheight) )