From 3fd98f8ff6fa0b9edf6cc520fbf42f0f22a470b9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Mar 2017 23:21:02 +0200 Subject: [PATCH] Test --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7797376f0..305dbc4ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -716,11 +716,11 @@ int32_t komodo_validate_interest(uint32_t *expiredp,const CTransaction& tx,uint3 prevblocktime = 0; if ( (locktime= komodo_interest_args(&txheighttime,&txheight,&tiptime,&value,tx.GetHash(),0)) != 0 && txheight > 0 ) { + if ( txheight == 0 ) + txheight = (int32_t)chainActive.Tip()->nHeight + 1; if ( (prev= komodo_chainactive(txheight-1)) != 0 ) prevblocktime = prev->nTime; } - if ( txheight == 0 ) - txheight = (int32_t)chainActive.Tip()->nHeight + 1; if ( tiptime == 0 ) tiptime = (int32_t)chainActive.Tip()->nTime; if ( txheighttime == 0 )