Browse Source
Merge pull request #990 from Mixa84/FSM
Fix tx_notarizedconfirmed
pull/4/head
jl777
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
9 deletions
-
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
|
|
|
|