Browse Source

Test

etomic
jl777 7 years ago
parent
commit
c2db7d17fe
  1. 1
      iguana/exchanges/LP_bitcoin.c
  2. 1
      iguana/exchanges/LP_utxo.c

1
iguana/exchanges/LP_bitcoin.c

@ -2046,7 +2046,6 @@ int32_t bitcoin_addr2rmd160(uint8_t taddr,uint8_t *addrtypep,uint8_t rmd160[20],
for (i=0; i<len; i++)
printf("%02x ",buf[i]);
char str[65]; printf("\naddrtype.%d taddr.%02x checkhash.(%s) len.%d mismatch %02x %02x %02x %02x vs %02x %02x %02x %02x (%s)\n",*addrtypep,taddr,coinaddr,len,buf[len-1]&0xff,buf[len-2]&0xff,buf[len-3]&0xff,buf[len-4]&0xff,hash.bytes[31],hash.bytes[30],hash.bytes[29],hash.bytes[28],bits256_str(str,hash));
printf("div by 0 %d\n",1/zeroval());
}
}
return(0);

1
iguana/exchanges/LP_utxo.c

@ -637,6 +637,7 @@ cJSON *LP_balances(char *coinaddr)
{
bitcoin_addr2rmd160(coin->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);
}
if ( (retjson= LP_address_balance(coin,address,1)) != 0 )
{

Loading…
Cancel
Save