From 0b71e4822a23ee361bbbf840c6c74071c5b9dbbe Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 26 Nov 2018 08:50:44 -1100 Subject: [PATCH] Fix komodo_txnotarizedconfirmed --- src/cc/CCutils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index 93fddee67..9d024cded 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -492,12 +492,12 @@ bool komodo_txnotarizedconfirmed(uint256 txid) return(0); } confirms=1 + pindex->GetHeight() - txheight; - if ( KOMODO_DPOWCONFS != 0 && txheight > 0 && confirms > 0 && (sp= komodo_stateptr(symbol,dest)) != 0 ) + if ( txheight > 0 && confirms > 0 && (sp= komodo_stateptr(symbol,dest)) != 0 ) { if ( (notarized=sp->NOTARIZED_HEIGHT) > 0 ) { if ( txheight >= sp->NOTARIZED_HEIGHT ) - confirms=1; + confirms = (txheight - sp->NOTARIZED_HEIGHT); } } #ifdef TESTMODE @@ -508,4 +508,4 @@ bool komodo_txnotarizedconfirmed(uint256 txid) else if (notarized==0 && confirms >= MIN_NON_NOTARIZED_CONFIRMS) return (true); return (false); -} \ No newline at end of file +}