From 65d74516bb119e353895c83ae8caf04b402cfe1f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 9 Dec 2016 14:59:04 +0200 Subject: [PATCH] test --- src/komodo_gateway.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index b6e93778e..268a98a12 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -482,11 +482,19 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } if ( ((opcode == 'I' && (pax->fiatoshis == 0 || pax->fiatoshis == block.vtx[0].vout[i].nValue)) || (opcode == 'X' && (pax->komodoshis == 0 || pax->komodoshis == block.vtx[0].vout[i].nValue))) ) { - if ( pax->marked != 0 && height >= 80820 ) + if ( pax->marked != 0 ) { - printf(">>>>>>>>>>> %c errs.%d i.%d match %.8f vs %.8f pax.%p\n",opcode,errs,i,dstr(opcode == 'I' ? pax->fiatoshis : pax->komodoshis),dstr(block.vtx[0].vout[i].nValue),pax); - errs++; - } else matched++; + if ( pax->marked != height && height >= 80820 ) + { + printf(">>>>>>>>>>> %c errs.%d i.%d match %.8f vs %.8f pax.%p\n",opcode,errs,i,dstr(opcode == 'I' ? pax->fiatoshis : pax->komodoshis),dstr(block.vtx[0].vout[i].nValue),pax); + errs++; + } else matched++; + } + else + { + matched++; + pax->marked = height; + } } else {