Browse Source

Test

etomic
jl777 8 years ago
parent
commit
44ee5b58ea
  1. 2
      iguana/exchanges/LP_bitcoin.c
  2. 4
      iguana/exchanges/LP_utxos.c
  3. 4
      iguana/exchanges/mm.c

2
iguana/exchanges/LP_bitcoin.c

@ -2083,7 +2083,7 @@ char *bitcoin_address(char *coinaddr,uint8_t taddr,uint8_t addrtype,uint8_t *pub
return(coinaddr); return(coinaddr);
} }
void iguana_priv2pub(void *ctx,uint8_t *pubkey33,char *coinaddr,bits256 privkey,uint8_t taddr,uint8_t addrtype) void bitcoin_priv2pub(void *ctx,uint8_t *pubkey33,char *coinaddr,bits256 privkey,uint8_t taddr,uint8_t addrtype)
{ {
bits256 pub; //char privstr[65],url[512],postdata[1024],*retstr,*pubstr,*addr; cJSON *retjson; bits256 pub; //char privstr[65],url[512],postdata[1024],*retstr,*pubstr,*addr; cJSON *retjson;
memset(pubkey33,0,33); memset(pubkey33,0,33);

4
iguana/exchanges/LP_utxos.c

@ -807,10 +807,10 @@ bits256 LP_privkeycalc(void *ctx,uint8_t *pubkey33,bits256 *pubkeyp,struct iguan
conv_NXTpassword(privkey.bytes,pubkeyp->bytes,(uint8_t *)passphrase,(int32_t)strlen(passphrase)); conv_NXTpassword(privkey.bytes,pubkeyp->bytes,(uint8_t *)passphrase,(int32_t)strlen(passphrase));
else else
{ {
privkey = iguana_wif2privkey(wifstr); bitcoin_wif2priv(&tmptype,&privkey,wifstr);
//printf("WIF.(%s) -> %s\n",wifstr,bits256_str(str,privkey)); //printf("WIF.(%s) -> %s\n",wifstr,bits256_str(str,privkey));
} }
iguana_priv2pub(ctx,pubkey33,coin->smartaddr,privkey,coin->taddr,coin->pubtype); bitcoin_priv2pub(ctx,pubkey33,coin->smartaddr,privkey,coin->taddr,coin->pubtype);
if ( coin->counter == 0 ) if ( coin->counter == 0 )
{ {
coin->counter++; coin->counter++;

4
iguana/exchanges/mm.c

@ -198,7 +198,7 @@ char *DEX_listunspent(char *coin,char *coinaddr)
return(bitcoind_RPC(0,"dex",url,0,"listunspent",postdata,0)); return(bitcoind_RPC(0,"dex",url,0,"listunspent",postdata,0));
} }
bits256 iguana_wif2privkey(char *wifstr) /*bits256 iguana_wif2privkey(char *wifstr)
{ {
char url[512],postdata[1024],*retstr,*privstr; bits256 privkey; cJSON *retjson; char url[512],postdata[1024],*retstr,*privstr; bits256 privkey; cJSON *retjson;
memset(privkey.bytes,0,sizeof(privkey)); memset(privkey.bytes,0,sizeof(privkey));
@ -218,7 +218,7 @@ bits256 iguana_wif2privkey(char *wifstr)
free(retstr); free(retstr);
} }
return(privkey); return(privkey);
} }*/
double bittrex_balance(char *base,char *coinaddr) double bittrex_balance(char *base,char *coinaddr)
{ {

Loading…
Cancel
Save