Browse Source

Test

etomic
jl777 8 years ago
parent
commit
b140012c81
  1. 2
      iguana/exchanges/LP_bitcoin.c

2
iguana/exchanges/LP_bitcoin.c

@ -2080,7 +2080,7 @@ char *bitcoin_address(char *coinaddr,uint8_t taddr,uint8_t addrtype,uint8_t *pub
if ( (coinaddr= bitcoin_base58encode(coinaddr,data,24+offset)) != 0 )
{
uint8_t checktype,rmd160[20]; char checkaddr[65];
bitcoin_addr2rmd160(taddr,&checktype,rmd160,coinaddr);
bitcoin_addr2rmd160(taddr,&checktype,rmd160,checkaddr);
if ( strcmp(checkaddr,coinaddr) != 0 )
printf("taddr.%02x checkaddr.(%s) vs coinaddr.(%s) %02x vs [%02x] memcmp.%d\n",taddr,checkaddr,coinaddr,addrtype,checktype,memcmp(rmd160,data+1,20));
} else printf("null coinaddr taddr.%02x\n",taddr);

Loading…
Cancel
Save