From 0820a58565c8fe1bacad2aa6f9a73b633196c9f4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 26 Nov 2018 09:00:55 -1100 Subject: [PATCH] init notarized --- src/cc/CCutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index 809b93e21..f1b39f776 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -465,7 +465,7 @@ int64_t CCduration(int32_t &numblocks,uint256 txid) bool komodo_txnotarizedconfirmed(uint256 txid) { char str[65]; - uint32_t confirms,notarized,txheight; + uint32_t confirms,notarized=0,txheight; CTransaction tx; uint256 hashBlock; CBlockIndex *pindex; @@ -494,7 +494,7 @@ bool komodo_txnotarizedconfirmed(uint256 txid) confirms=1 + pindex->GetHeight() - txheight; if ( txheight > 0 && confirms > 0 && (sp= komodo_stateptr(symbol,dest)) != 0 ) { - if ( (notarized=sp->NOTARIZED_HEIGHT) > 0 ) + if ( (notarized= sp->NOTARIZED_HEIGHT) > 0 ) { if ( txheight >= sp->NOTARIZED_HEIGHT ) confirms = (txheight - sp->NOTARIZED_HEIGHT);