Browse Source

Test

etomic
jl777 7 years ago
parent
commit
36429f2b40
  1. 7
      iguana/exchanges/LP_utxo.c

7
iguana/exchanges/LP_utxo.c

@ -622,7 +622,10 @@ cJSON *LP_address_balance(struct iguana_info *coin,char *coinaddr,int32_t electr
cJSON *LP_balances(char *coinaddr)
{
struct iguana_info *coin,*tmp; char address[64]; uint8_t addrtype,rmd160[20]; uint64_t balance,KMDvalue,sum = 0; cJSON *array,*item,*retjson;
struct iguana_info *coin,*tmp; char address[64]; uint8_t taddr,addrtype,rmd160[20]; uint64_t balance,KMDvalue,sum = 0; cJSON *array,*item,*retjson;
if ( coinaddr[0] == 't' && (coinaddr[1] == '1' || coinaddr[1] == '3') )
taddr = 1;
else taddr = 0;
array = cJSON_CreateArray();
HASH_ITER(hh,LP_coins,coin,tmp)
{
@ -635,7 +638,7 @@ cJSON *LP_balances(char *coinaddr)
}
else
{
bitcoin_addr2rmd160(coin->taddr,&addrtype,rmd160,coinaddr);
bitcoin_addr2rmd160(taddr,&addrtype,rmd160,coinaddr);
bitcoin_address(address,coin->taddr,coin->pubtype,rmd160,20);
printf("%s taddr.%d addrtype.%u %s -> %s\n",coin->symbol,coin->taddr,addrtype,coinaddr,address);
}

Loading…
Cancel
Save