From 0f99d3c46980d532dac1aab6b48d84578f22e209 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 21 Nov 2016 14:07:46 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 1cc0bb9cb..cfe40710f 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -392,7 +392,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 for (i=0; i<33; i++) printf("%02x",pubkey33[i]); printf(" checkpubkey check %.8f v %.8f dest.(%s) kmdheight.%d height.%d\n",dstr(checktoshis),dstr(value),destaddr,kmdheight,height); - if ( value == checktoshis )//value >= checktoshis || (seed == 0 && diff < .01) ) + if ( value >= checktoshis-(checktoshis >> 10) ) { if ( komodo_paxfind(&space,txid,vout) == 0 ) { @@ -412,7 +412,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 checktoshis = PAX_fiatdest(&seed,tokomodo,destaddr,pubkey33,coinaddr,kmdheight,base,value); typestr = "withdraw"; printf("%s.height.%d vs height.%d check %.8f/%.8f vs %.8f tokomodo.%d %d seed.%llx -> (%s)\n",ASSETCHAINS_SYMBOL,kmdheight,height,dstr(checktoshis),dstr(komodoshis),dstr(value),komodo_is_issuer(),strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0,(long long)seed,coinaddr); - if ( checktoshis == komodoshis ) + if ( checktoshis <= komodoshis+(komodoshis >> 10) ) { if ( (pax= komodo_paxfind(&space,txid,vout)) == 0 ) {