jl777 7 years ago
parent
commit
4d48070b85
  1. 5
      iguana/exchanges/LP_ordermatch.c
  2. 1
      iguana/exchanges/LP_rpc.c

5
iguana/exchanges/LP_ordermatch.c

@ -729,11 +729,12 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
{
if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) < 0 )
{
printf("issue path\n");
n = LP_listunspent_issue(symbol,coinaddr);
}
else
{
//printf("my coin\n");
printf("my coin\n");
sprintf(buf,"[1, 99999999, [\"%s\"]]",coinaddr);
if ( (array= bitcoin_json(coin,"listunspent",buf)) != 0 )
{
@ -941,7 +942,7 @@ struct LP_utxoinfo *LP_buyutxo(struct LP_utxoinfo *bestutxo,double *ordermatchpr
if ( LP_pricevalid(price) > 0 && price <= maxprice )
{
pubkey = jbits256(item,"pubkey");
printf("%s -> %d\n",jprint(item,0),bits256_cmp(pubkey,G.LP_mypub25519));
printf("%s pubcmp %d\n",jprint(item,0),bits256_cmp(pubkey,G.LP_mypub25519));
if ( bits256_cmp(pubkey,G.LP_mypub25519) != 0 && (pubp= LP_pubkeyadd(pubkey)) != 0 )
{
bitcoin_address(coinaddr,basecoin->taddr,basecoin->pubtype,pubp->rmd160,sizeof(pubp->rmd160));

1
iguana/exchanges/LP_rpc.c

@ -469,6 +469,7 @@ int32_t LP_listunspent_issue(char *symbol,char *coinaddr)
struct iguana_info *coin; int32_t n = 0; cJSON *retjson=0; char *retstr=0,destip[64]; uint16_t destport;
if ( symbol == 0 || symbol[0] == 0 )
return(0);
printf("LP_listunspent_issue\n");
if ( (coin= LP_coinfind(symbol)) != 0 )
{
if ( coin->electrum != 0 )

Loading…
Cancel
Save