From bfeb19766139b85d7a59d2346cda17c9899466e5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Oct 2016 18:53:28 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 4 ++-- src/miner.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 8a742b27f..28c86cf8b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -145,14 +145,14 @@ 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) height.%d\n",dstr(checktoshis),dstr(value),destaddr,height); - if ( value >= (9999*checktoshis)/10000 && shortflag == ASSETCHAINS_SHORTFLAG ) + if ( value >= checktoshis && shortflag == ASSETCHAINS_SHORTFLAG ) { komodo_gateway_deposit(coinaddr,value,shortflag,base,fiatoshis,rmd160,txid,vout); } } else { - if ( value <= (10000*checktoshis)/9999 ) + if ( value <= checktoshis ) { } diff --git a/src/miner.cpp b/src/miner.cpp index 8974bac36..c76a24b63 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -375,6 +375,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) else { komodo_gateway_deposits(&txNew); + fprintf(stderr,"txNew numvouts.%d\n",txNew.vout.size()); } pblock->vtx[0] = txNew;