From 9a9b36ca7ee9af11b3957b2d72616cbbecb47727 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Mar 2017 23:20:31 +0200 Subject: [PATCH] Test --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 890482c30..7797376f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -719,6 +719,8 @@ int32_t komodo_validate_interest(uint32_t *expiredp,const CTransaction& tx,uint3 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 )