From 09ba3bfc9d775f1338cc8603bb73056398d8de06 Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Mon, 26 Nov 2018 22:19:15 +0100 Subject: [PATCH] Fix tx_notarizedconfirmed --- src/cc/CCutils.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index ac5d947ad..e10d97224 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -492,15 +492,7 @@ bool komodo_txnotarizedconfirmed(uint256 txid) return(0); } confirms=1 + pindex->GetHeight() - txheight; - if ( txheight > 0 && confirms > 0 && (sp= komodo_stateptr(symbol,dest)) != 0 ) - { - if ( (notarized= sp->NOTARIZED_HEIGHT) > 0 ) - { - if ( txheight >= sp->NOTARIZED_HEIGHT ) - confirms = (txheight - sp->NOTARIZED_HEIGHT); - else notarized = 0; - } - } + if ((sp= komodo_stateptr(symbol,dest)) != 0 && (notarized=sp->NOTARIZED_HEIGHT) > 0 && txheight > sp->NOTARIZED_HEIGHT) notarized=0; #ifdef TESTMODE notarized=0; #endif //TESTMODE