Browse Source

Test

etomic
jl777 7 years ago
parent
commit
efa509afd2
  1. 4
      iguana/exchanges/LP_utxo.c

4
iguana/exchanges/LP_utxo.c

@ -623,7 +623,7 @@ 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 taddr,addrtype,rmd160[20]; uint64_t balance,KMDvalue,sum = 0; cJSON *array,*item,*retjson;
if ( coinaddr != 0 && coinaddr[0] != 0 && coinaddr[0] == 't' && (coinaddr[1] == '1' || coinaddr[1] == '3') )
if ( coinaddr != 0 && coinaddr[0] == 't' && (coinaddr[1] == '1' || coinaddr[1] == '3') )
taddr = 1;
else taddr = 0;
array = cJSON_CreateArray();
@ -640,7 +640,7 @@ cJSON *LP_balances(char *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);
printf("%s taddr.%d addrtype.%u %s -> %s\n",coin->symbol,taddr,addrtype,coinaddr,address);
}
if ( (retjson= LP_address_balance(coin,address,1)) != 0 )
{

Loading…
Cancel
Save