Browse Source

Test

etomic
jl777 7 years ago
parent
commit
a9b4f6664b
  1. 16
      README.md
  2. 1
      iguana/exchanges/LP_signatures.c
  3. 2
      iguana/exchanges/mm.c

16
README.md

@ -260,12 +260,10 @@ The iguana binary and its linked libraries are in ```$HOME/tmp/iguana```.
0. `make sure g++-7 ln to /usr/bin/g++` 0. `make sure g++-7 ln to /usr/bin/g++`
1. `cd ~/SuperNET` 1. `cd ~/SuperNET`
2. `git checkout etomic` 2. `git checkout etomic`
3. `git submodule add https://github.com/artemii235/cpp-ethereum` 3. `git submodule update --init --recursive`
4. `git submodule update --init --recursive` 4. `mkdir build`
5. `mkdir build` 5. `cd build`
6. `cd build` 6. `cmake ..`
7. `cmake ..` 7. `cmake --build . --target marketmaker`
8. `cmake --build . --target marketmaker` 8. `cd build/iguana/exchanges`
9. `cd build/iguana/exchanges` 9. `./marketmaker`
10. `export BOB_PK=YOUR_PRIVATE_KEY` #export BOB_PK=59a03784447e3b24d2deb7231236d549502e4e806550aca4ab6a5532b003da25
11. `./marketmaker`

1
iguana/exchanges/LP_signatures.c

@ -444,6 +444,7 @@ char *LP_pricepings(void *ctx,char *myipaddr,int32_t pubsock,char *base,char *re
jaddnum(reqjson,"max",dstr(maxsize)); jaddnum(reqjson,"max",dstr(maxsize));
} }
LP_price_sigadd(reqjson,timestamp,G.LP_privkey,G.LP_pubsecp,G.LP_mypub25519,base,rel,price64); LP_price_sigadd(reqjson,timestamp,G.LP_privkey,G.LP_pubsecp,G.LP_mypub25519,base,rel,price64);
printf("priceping.(%s)\n",jprint(reqjson,0));
LP_reserved_msg(0,base,rel,zero,jprint(reqjson,1)); LP_reserved_msg(0,base,rel,zero,jprint(reqjson,1));
return(clonestr("{\"result\":\"success\"}")); return(clonestr("{\"result\":\"success\"}"));
} else return(clonestr("{\"error\":\"electrum node cant post bob asks\"}")); } else return(clonestr("{\"error\":\"electrum node cant post bob asks\"}"));

2
iguana/exchanges/mm.c

@ -133,7 +133,7 @@ int main(int argc, const char * argv[])
{ {
char dirname[512],*passphrase; double incr; cJSON *retjson; char dirname[512],*passphrase; double incr; cJSON *retjson;
OS_init(); OS_init();
ETH_test(); //ETH_test();
if ( strstr(argv[0],"btc2kmd") != 0 && argv[1] != 0 ) if ( strstr(argv[0],"btc2kmd") != 0 && argv[1] != 0 )
{ {
uint8_t addrtype,rmd160[20],rmd160b[20]; char coinaddr[64],coinaddr2[64]; uint8_t addrtype,rmd160[20],rmd160b[20]; char coinaddr[64],coinaddr2[64];

Loading…
Cancel
Save