From c8e854e4c66fd7adf630796fa2b322c5c4407843 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Mar 2017 07:38:40 +0200 Subject: [PATCH] Test --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8f2870fa9..9e92c398e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -732,13 +732,13 @@ int32_t komodo_validate_interest(uint32_t *expiredp,const CTransaction& tx,int32 { if ( chainActive.Tip() != 0 ) { - if ( txheight == 0 || txheight == chainActive.Tip()->nHeight+1 ) + if ( strictflag == 0 || txheight == 0 || txheight == chainActive.Tip()->nHeight+1 ) prevblocktime = chainActive.Tip()->nTime; - else if ( strictflag == 0 ) + else { - prevblocktime = chainActive.Tip()->nTime; - fprintf(stderr,"couldnt get prevblocktime for [%d] use tiptime.%u\n",txheight,prevblocktime); - } else return(-1); + fprintf(stderr,"couldnt get prevblocktime for [%d] tiptime.%u\n",txheight,chainActive.Tip()->nTime); + return(-1); + } } } if ( prevblocktime == 0 )