From c5fae7900907090faa830d61c91ef5a0166b6415 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 2 Dec 2017 22:58:37 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_instantdex.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index 81c5e505a..56f4a05d0 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -235,7 +235,7 @@ char *LP_instantdex_claim(struct iguana_info *coin) // make into function, and separate calling path by txid if ( (txjson= LP_gettx(coin->symbol,utxotxid,1)) != 0 ) { - if ( (vouts= jarray(&numvouts,txjson,"vout")) != 0 && numvouts >= 3 ) + if ( (vouts= jarray(&numvouts,txjson,"vout")) != 0 && numvouts == 3 ) { vout0 = jitem(vouts,0); LP_destaddr(vinaddr,vout0); @@ -414,7 +414,6 @@ int64_t LP_dynamictrust(bits256 pubkey,int64_t kmdvalue) int64_t LP_instantdex_proofcheck(char *coinaddr,cJSON *proof,int32_t num) { uint8_t rmd160[20],addrtype; int32_t i; int64_t net = 0; char othersmartaddr[64]; struct iguana_info *coin; struct LP_address *ap = 0; - printf("proofcheck.(%s) %d %s\n",coinaddr,num,jprint(proof,0)); if ( (coin= LP_coinfind("KMD")) != 0 ) { bitcoin_addr2rmd160(0,&addrtype,rmd160,coinaddr); @@ -442,7 +441,7 @@ int64_t LP_myzcredits() zcredits = LP_instantdex_proofcheck(coin->smartaddr,proof,cJSON_GetArraySize(proof)); free_json(proof); return(zcredits); - } else printf("cant find my instantdex proof\n"); + } } return(0); }