From ad5f6f8489a0d31b00b3865816f14e3b04c90027 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Aug 2019 20:44:52 -1100 Subject: [PATCH] Different handling between chains without notarisation --- src/komodo_notary.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/komodo_notary.h b/src/komodo_notary.h index c7efc6111..c260bae5f 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -364,15 +364,19 @@ int32_t komodo_notarized_height(int32_t *prevMoMheightp,uint256 *hashp,uint256 * int32_t komodo_dpowconfs(int32_t txheight,int32_t numconfs) { + static int32_t hadnotarization; char symbol[KOMODO_ASSETCHAIN_MAXLEN],dest[KOMODO_ASSETCHAIN_MAXLEN]; struct komodo_state *sp; if ( KOMODO_DPOWCONFS != 0 && txheight > 0 && numconfs > 0 && (sp= komodo_stateptr(symbol,dest)) != 0 ) { if ( sp->NOTARIZED_HEIGHT > 0 ) { + hadnotarization = 1; if ( txheight < sp->NOTARIZED_HEIGHT ) return(numconfs); else return(1); - } else return(1); + } + else if ( hadnotarization != 0 ) + return(1); } return(numconfs); }