jl777 7 years ago
parent
commit
910506b89a
  1. 4
      iguana/exchanges/LP_commands.c
  2. 1
      iguana/exchanges/LP_utxo.c

4
iguana/exchanges/LP_commands.c

@ -379,7 +379,9 @@ dividends(coin, height, <args>)\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

1
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 )

Loading…
Cancel
Save