From fa0a031c09648c905e69297c4b1e3d4fcc238825 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Mar 2017 01:33:47 +0200 Subject: [PATCH] Test --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index de593507f..78af52e15 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -762,11 +762,12 @@ int32_t komodo_validate_interest(uint32_t *expiredp,const CTransaction& tx,int32 } }*/ if ( txheightarg == 0 ) - txheightarg = chainActive.Tip()->nHeight + 1; + txheightarg = chainActive.Tip()->nHeight; + else txheightarg--; if ( (cmptime= komodo_heightstamp(txheightarg-1)) == 0 ) { - cmptime = chainActive.Tip()->nTime; fprintf(stderr,"couldnt get prev.[%d] use tiptime.%u\n",txheightarg-1,cmptime); + return(-1); } //if ( (prev= komodo_chainactive(txheightarg-1)) != 0 ) // cmptime = prev->nTime + 600;