Browse Source

Test

etomic
jl777 7 years ago
parent
commit
4cc9e2cc39
  1. 2
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_commands.c

@ -442,9 +442,9 @@ zeroconf_claim(address, expiration=0)\n\
if ( coinaddr[0] != 0 )
{
LP_address(ptr,coinaddr);
LP_listunspent_issue(coin,coinaddr,2);
if ( strcmp(coinaddr,ptr->smartaddr) == 0 && bits256_nonz(G.LP_privkey) != 0 )
{
//LP_listunspent_issue(coin,coinaddr,2);
//LP_privkey_init(-1,ptr,G.LP_privkey,G.LP_mypub25519);
}
return(jprint(LP_listunspent(coin,coinaddr),0));

2
iguana/exchanges/LP_rpc.c

@ -657,7 +657,6 @@ cJSON *LP_listunspent(char *symbol,char *coinaddr)
if ( symbol == 0 || symbol[0] == 0 )
return(cJSON_Parse("{\"error\":\"null symbol\"}"));
coin = LP_coinfind(symbol);
//printf("LP_listunspent.(%s %s)\n",symbol,coinaddr);
if ( coin == 0 || (IAMLP == 0 && coin->inactive != 0) )
return(cJSON_Parse("{\"error\":\"no coin\"}"));
if ( coin->electrum == 0 )
@ -668,6 +667,7 @@ cJSON *LP_listunspent(char *symbol,char *coinaddr)
numconfs = 0;
else numconfs = 1;
sprintf(buf,"[%d, 99999999, [\"%s\"]]",numconfs,coinaddr);
printf("LP_listunspent.(%s %s)\n",symbol,coinaddr);
return(bitcoin_json(coin,"listunspent",buf));
} else return(LP_address_utxos(coin,coinaddr,0));
} else return(electrum_address_listunspent(symbol,coin->electrum,&retjson,coinaddr,1));

Loading…
Cancel
Save