Browse Source

Test

etomic
jl777 8 years ago
parent
commit
8195e3394d
  1. 10
      iguana/exchanges/LP_coins.c
  2. 2
      iguana/exchanges/client

10
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));
}

2
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\"}" &

Loading…
Cancel
Save