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

2
iguana/exchanges/LP_ordermatch.c

@ -729,7 +729,7 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
{
if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) < 0 )
{
printf("issue path\n");
printf("issue path electrum.%p\n",coin->electrum);
n = LP_listunspent_issue(symbol,coinaddr);
}
else

5
iguana/exchanges/LP_rpc.c

@ -414,8 +414,7 @@ cJSON *LP_validateaddress(char *symbol,char *address)
jaddstr(retjson,"scriptPubKey",script);
}
bitcoin_address(coinaddr,coin->taddr,coin->pubtype,G.LP_myrmd160,20);
if ( strcmp(address,coinaddr) == 0 )
jadd(retjson,"ismine",cJSON_CreateTrue());
jadd(retjson,"ismine",strcmp(address,coin->smartaddr) == 0 ? cJSON_CreateTrue() : cJSON_CreateFalse());
jadd(retjson,"iswatchonly",cJSON_CreateFalse());
jadd(retjson,"isscript",addrtype == coin->p2shtype ? cJSON_CreateTrue() : cJSON_CreateFalse());
return(retjson);
@ -437,7 +436,7 @@ int32_t LP_address_ismine(char *symbol,char *address)
if ( jobj(retjson,"ismine") != 0 && is_cJSON_True(jobj(retjson,"ismine")) != 0 )
{
doneflag = 1;
//printf("%s already ismine\n",address);
printf("%s ismine (%s)\n",address,jprint(retjson,0));
}
//printf("%s\n",jprint(retjson,0));
free_json(retjson);

Loading…
Cancel
Save