From 8195e3394d260b93c31904f6c846956c795f1f2b Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Jun 2017 07:52:04 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_coins.c | 10 ++++++++-- iguana/exchanges/client | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index 18a38390a..6b1a0f6f6 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -198,7 +198,7 @@ struct iguana_info *LP_coinsearch(char *symbol) struct iguana_info *LP_coinfind(char *symbol) { - struct iguana_info *coin,cdata; int32_t longestchain = 1000000; uint16_t port; uint64_t txfee; double estimatedrate; uint8_t pubtype,p2shtype,wiftype; char *name; + struct iguana_info *coin,cdata; int32_t longestchain = 1000000; uint16_t port; uint64_t txfee; double estimatedrate; uint8_t pubtype,p2shtype,wiftype; char *name,namebuf[512]; if ( (coin= LP_coinsearch(symbol)) != 0 ) return(coin); if ( (port= LP_rpcport(symbol)) == 0 ) @@ -216,7 +216,13 @@ struct iguana_info *LP_coinfind(char *symbol) wiftype = 128; name = "bitcoin"; } - else name = (strcmp(symbol,"KMD") == 0) ? "komodo" : symbol; + else if ( strcmp(symbol,"KMD") == 0 ) + name = "komodo"; + else + { + sprintf(namebuf,"komodo/%s",symbol); + name = namebuf; + } LP_coininit(&cdata,symbol,name,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain); return(LP_coinadd(&cdata)); } diff --git a/iguana/exchanges/client b/iguana/exchanges/client index 2452d2855..bbc9b9575 100755 --- a/iguana/exchanges/client +++ b/iguana/exchanges/client @@ -1,2 +1,2 @@ source randval -pkill -15 marketmaker; git pull; cd ..; ./m_mm; ./marketmaker "{\"client\":1,\"coins\":[{\"coin\":\"REVS\", \"rpcport\":10196}, {\"coin\":\"JUMBLR\", \"rpcport\":15106}], \"userhome\":\"/${HOME#"/"}\",\"passphrase\":\"$randval\"}" & +pkill -15 marketmaker; git pull; cd ..; ./m_mm; ./marketmaker "{\"client\":1,\"coins\":[{\"coin\":\"REVS\", \"name\":\"komodo/REVS", \"rpcport\":10196}, {\"coin\":\"JUMBLR\", \"name\":\"komodo/JUMBLR\", \"rpcport\":15106}], \"userhome\":\"/${HOME#"/"}\",\"passphrase\":\"$randval\"}" &