jl777 7 years ago
parent
commit
8298fe5982
  1. 3
      iguana/exchanges/LP_utxo.c

3
iguana/exchanges/LP_utxo.c

@ -124,6 +124,7 @@ void LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid,int
up->U.value = value;
up->spendheight = spendheight;
DL_APPEND(ap->utxos,up);
char str[65]; printf(">>>>>>>>>> %s %s/v%d ht.%d %.8f\n",coin->symbol,bits256_str(str,txid),vout,height,dstr(value));
}
}
portable_mutex_unlock(&coin->txmutex);
@ -173,7 +174,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");
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 ( cJSON_GetArraySize(array) == 0 )

Loading…
Cancel
Save