From 910506b89a9f946cbb9a3717eb5f52d4194c830c Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 16 Sep 2017 14:19:04 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 +++- iguana/exchanges/LP_utxo.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index f3155e3f9..9b016a4ef 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -379,7 +379,9 @@ dividends(coin, height, )\n\ } else if ( strcmp(method,"utxo") == 0 ) { - printf("deprecated utxo received\n"); + static uint32_t counter; + if ( counter++ < 3 ) + printf("deprecated utxo received\n"); //if ( LP_utxoaddjson(1,LP_mypubsock,argjson) != 0 ) // retstr = clonestr("{\"result\":\"success\",\"utxo\":\"received\"}"); //else diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index c4f4a992c..54981e51f 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -173,6 +173,7 @@ cJSON *LP_address_utxos(struct iguana_info *coin,char *coinaddr,int32_t electrum void LP_postutxos(int32_t pubsock,char *symbol) { bits256 zero; char *msg; struct iguana_info *coin; cJSON *array,*reqjson = cJSON_CreateObject(); + printf("LP_postutxos\n"); if ( (coin= LP_coinfind(symbol)) != 0 && (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 ) { if ( cJSON_GetArraySize(array) == 0 )