From c17d98697c43a18dd3405042ea73a656a6d2932a Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 4 Nov 2016 14:10:54 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index b353b1f1c..88d00dc8b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -169,7 +169,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { if ( (pax= komodo_paxfind(&space,txids[i-1],vouts[i-1])) == 0 || pax->fiatoshis != block.vtx[0].vout[i].nValue ) break; - else printf("found issued %.8f\n",dstr(block.vtx[0].vout[i].nValue)); + komodo_paxmark(&space,txids[i-1],vouts[i-1],height); } if ( i != n-1 ) { @@ -193,7 +193,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 { if ( opretlen == 34 ) { - if ( ASSETCHAINS_SYMBOL[0] != 0 ) + if ( 0 && ASSETCHAINS_SYMBOL[0] != 0 ) { for (i=0; i= checktoshis && shortflag == ASSETCHAINS_SHORTFLAG ) { - komodo_gateway_deposit(coinaddr,value,shortflag,base,fiatoshis,rmd160,txid,vout,height); + if ( komodo_paxfind(&space,txid,vout) == 0 ) + komodo_gateway_deposit(coinaddr,value,shortflag,base,fiatoshis,rmd160,txid,vout,height); } } else @@ -232,7 +233,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 { if ( tokomodo == 0 && opretbuf[0] == 'I' ) { - if ( ASSETCHAINS_SYMBOL[0] != 0 ) + if ( 0 && ASSETCHAINS_SYMBOL[0] != 0 ) { for (i=0; i