Browse Source

Init atomic coins

etomic
jl777 7 years ago
parent
commit
1c28a2bc8f
  1. 1
      README.md
  2. 4
      iguana/exchanges/LP_commands.c

1
README.md

@ -257,6 +257,7 @@ Execute the OSX deploy script:
The iguana binary and its linked libraries are in ```$HOME/tmp/iguana```. The iguana binary and its linked libraries are in ```$HOME/tmp/iguana```.
# Cmake build of marketmaker with linked etomic lib for ETH/ERC20 atomic swaps: # Cmake build of marketmaker with linked etomic lib for ETH/ERC20 atomic swaps:
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 add https://github.com/artemii235/cpp-ethereum`

4
iguana/exchanges/LP_commands.c

@ -428,7 +428,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\
//* //*
if ( (ptr= LP_coinsearch(coin)) != 0 ) if ( (ptr= LP_coinsearch(coin)) != 0 )
{ {
if ( ptr->userpass[0] == 0 ) if ( ptr->userpass[0] == 0 && ptr->etomic[0] == 0 )
{ {
cJSON *retjson = cJSON_CreateObject(); cJSON *retjson = cJSON_CreateObject();
jaddstr(retjson,"error",LP_DONTCHANGE_ERRMSG0); jaddstr(retjson,"error",LP_DONTCHANGE_ERRMSG0);
@ -439,7 +439,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\
{ {
ptr->inactive = 0; ptr->inactive = 0;
cJSON *array; int32_t notarized; cJSON *array; int32_t notarized;
if ( LP_getheight(&notarized,ptr) <= 0 ) if ( ptr->etomic[0] == 0 && LP_getheight(&notarized,ptr) <= 0 )
{ {
ptr->inactive = (uint32_t)time(NULL); ptr->inactive = (uint32_t)time(NULL);
return(clonestr("{\"error\":\"coin cant be activated till synced\"}")); return(clonestr("{\"error\":\"coin cant be activated till synced\"}"));

Loading…
Cancel
Save