jl777 7 years ago
parent
commit
71b9e3f3f3
  1. 4
      iguana/exchanges/LP_utxo.c

4
iguana/exchanges/LP_utxo.c

@ -126,7 +126,7 @@ void LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid,int
DL_APPEND(ap->utxos,up); DL_APPEND(ap->utxos,up);
char str[65]; char str[65];
if ( height > 0 ) if ( height > 0 )
printf(">>>>>>>>>> %s %s/v%d ht.%d %.8f\n",coin->symbol,bits256_str(str,txid),vout,height,dstr(value)); printf(">>>>>>>>>> %s %s %s/v%d ht.%d %.8f\n",coin->symbol,coinaddr,bits256_str(str,txid),vout,height,dstr(value));
} }
} }
portable_mutex_unlock(&coin->txmutex); portable_mutex_unlock(&coin->txmutex);
@ -176,9 +176,9 @@ cJSON *LP_address_utxos(struct iguana_info *coin,char *coinaddr,int32_t electrum
void LP_postutxos(int32_t pubsock,char *symbol) void LP_postutxos(int32_t pubsock,char *symbol)
{ {
bits256 zero; char *msg; struct iguana_info *coin; cJSON *array,*reqjson = cJSON_CreateObject(); bits256 zero; char *msg; struct iguana_info *coin; cJSON *array,*reqjson = cJSON_CreateObject();
printf("LP_postutxos pubsock.%d %s\n",pubsock,symbol);
if ( (coin= LP_coinfind(symbol)) != 0 && (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 ) if ( (coin= LP_coinfind(symbol)) != 0 && (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 )
{ {
printf("LP_postutxos pubsock.%d %s %s\n",pubsock,symbol,coin->smartaddr);
if ( cJSON_GetArraySize(array) == 0 ) if ( cJSON_GetArraySize(array) == 0 )
free_json(array); free_json(array);
else else

Loading…
Cancel
Save