From 813a404f5e4e5b813d9727014c74e111a8b3bc47 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 4 Jul 2017 12:09:04 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 8 ++++++-- iguana/exchanges/install | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index d4a49bc5b..93cb3cd61 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -562,12 +562,16 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson, char *LP_bestfit(char *rel,double relvolume) { - struct LP_utxoinfo *autxo; + struct LP_utxoinfo *autxo; cJSON *retjson; + printf("LP_bestfit\n"); if ( relvolume <= 0. || LP_priceinfofind(rel) == 0 ) return(clonestr("{\"error\":\"invalid parameter\"}")); + printf("call LP_utxo_bestfit\n"); if ( (autxo= LP_utxo_bestfit(rel,SATOSHIDEN * relvolume)) == 0 ) return(clonestr("{\"error\":\"cant find utxo that is big enough\"}")); - return(jprint(LP_utxojson(autxo),1)); + retjson = LP_utxojson(autxo); + printf("autxo.%p %p\n",autxo,retjson); + return(jprint(retjson,1)); } char *LP_autotrade(void *ctx,char *myipaddr,int32_t mypubsock,double profitmargin,char *base,char *rel,double maxprice,double relvolume,int32_t timeout,int32_t duration) diff --git a/iguana/exchanges/install b/iguana/exchanges/install index 50684ad87..592b42f52 100755 --- a/iguana/exchanges/install +++ b/iguana/exchanges/install @@ -1,4 +1,5 @@ cp bestfit orderbook autotrade client run_osx client_osx run coins disable enable forward myprice myprices getcoins getpeers getpeersIP getprices getutxos help inv lookup pub setprice status utxos ../dexscripts cd ../dexscripts +echo now in dexscripts directory where you can make customized scripts that wont conflict with git pull #cp ../exchanges/passphrase ../exchanges/userpass . echo you will need to have a passphrase file with your passphrase and userpass file with userpass value in dexscripts dir