jl777 7 years ago
parent
commit
0a4f35a22e
  1. 4
      iguana/exchanges/LP_coins.c
  2. 2
      iguana/exchanges/LP_include.h
  3. 6
      iguana/exchanges/LP_nativeDEX.c
  4. 2
      iguana/exchanges/m_js

4
iguana/exchanges/LP_coins.c

@ -315,7 +315,7 @@ uint16_t LP_coininit(struct iguana_info *coin,char *symbol,char *name,char *asse
coin->ctx = bitcoin_ctx();
if ( assetname != 0 && strcmp(name,assetname) == 0 )
{
printf("%s is assetchain\n",symbol);
//printf("%s is assetchain\n",symbol);
coin->isassetchain = 1;
}
if ( strcmp(symbol,"KMD") == 0 || (assetname != 0 && assetname[0] != 0) )
@ -436,7 +436,7 @@ struct iguana_info *LP_coincreate(cJSON *item)
}
} else coin->inactive = 0;
}
if ( coin != 0 && coin->inactive != 0 )
if ( 0 && coin != 0 && coin->inactive != 0 )
printf("LPnode.%d %s inactive.%u %p vs %p\n",IAMLP,coin->symbol,coin->inactive,assetname,name);
return(0);
}

2
iguana/exchanges/LP_include.h

@ -23,6 +23,8 @@
#ifdef FROM_JS
#include <emscripten.h>
#define sleep(x) emscripten_sleep(x)
#endif
//#define LP_STRICTPEERS

6
iguana/exchanges/LP_nativeDEX.c

@ -1035,9 +1035,9 @@ void LP_fromjs_iter()
char *bitcoind_RPC(char **retstrp,char *debugstr,char *url,char *userpass,char *command,char *params,int32_t timeout)
{
char fullurl[512];
sprintf(fullurl,"%s@%s",userpass,url);
printf("bitcoind_RPC(%s)\n",fullurl);
//char fullurl[512];
//sprintf(fullurl,"%s@%s",userpass,url);
printf("bitcoind_RPC(%s)\n",url);
return(clonestr("{\"error\":\"curl is disabled\"}"));
}

2
iguana/exchanges/m_js

@ -1,4 +1,4 @@
cd ..
echo building...
emcc -s TOTAL_MEMORY=536870912 --preload-file coins.json -DFROM_JS -O2 -I../includes -I../crypto777 -s PTHREAD_POOL_SIZE=40 -s USE_PTHREADS=2 -o /var/www/html/index.html exchanges/mm.c ../crypto777/*.c ../crypto777/jpeg/*.c ../crypto777/jpeg/unix/*.c mini-gmp.c secp256k1/src/secp256k1.c -lm ../OSlibs/js/libnanomsg.so
emcc -s ASYNCIFY=1 -s TOTAL_MEMORY=134217728 --preload-file coins.json -DFROM_JS -O2 -I../includes -I../crypto777 -s PTHREAD_POOL_SIZE=40 -s USE_PTHREADS=2 -o /var/www/html/index.html exchanges/mm.c ../crypto777/*.c ../crypto777/jpeg/*.c ../crypto777/jpeg/unix/*.c mini-gmp.c secp256k1/src/secp256k1.c -lm ../OSlibs/js/libnanomsg.so

Loading…
Cancel
Save