|
|
@ -68,12 +68,12 @@ int32_t HDRnet,netBLOCKS; |
|
|
|
cJSON *API_json; |
|
|
|
|
|
|
|
#ifdef __PNACL__ |
|
|
|
char GLOBAL_TMPDIR[512] = "/DB/tmp"; |
|
|
|
char GLOBAL_TMPDIR[512] = "/tmp"; |
|
|
|
char GLOBAL_DBDIR[512] = "/DB"; |
|
|
|
char GLOBAL_HELPDIR[512] = "/DB/help"; |
|
|
|
char GLOBAL_VALIDATEDIR[512] = "/DB/purgeable"; |
|
|
|
char GLOBAL_CONFSDIR[512] = "/DB/confs"; |
|
|
|
int32_t IGUANA_NUMHELPERS = 1; |
|
|
|
int32_t IGUANA_NUMHELPERS = 3; |
|
|
|
#else |
|
|
|
char GLOBAL_TMPDIR[512] = "tmp"; |
|
|
|
char GLOBAL_HELPDIR[512] = "help"; |
|
|
@ -1139,7 +1139,7 @@ void iguana_appletests(struct supernet_info *myinfo) |
|
|
|
exit(-1); |
|
|
|
} |
|
|
|
sleep(1);*/ |
|
|
|
if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"prefetchlag\":13,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":500,\"endpend\":500,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":1}"),0,myinfo->rpcport)) != 0 ) |
|
|
|
if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"prefetchlag\":13,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":500,\"endpend\":500,\"services\":128,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":1}"),0,myinfo->rpcport)) != 0 ) |
|
|
|
{ |
|
|
|
free(str); |
|
|
|
if ( 0 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"userhome\":\"/Users/jimbolaptop/Library/Application Support\",\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1024,\"maxpeers\":256,\"newcoin\":\"BTCD\",\"active\":1}"),0,myinfo->rpcport)) != 0 ) |
|
|
@ -1327,7 +1327,7 @@ void iguana_main(void *arg) |
|
|
|
iguana_helpinit(myinfo); |
|
|
|
iguana_commandline(myinfo,arg); |
|
|
|
#ifdef __APPLE__ |
|
|
|
//iguana_appletests(myinfo);
|
|
|
|
iguana_appletests(myinfo); |
|
|
|
#endif |
|
|
|
iguana_launchdaemons(myinfo); |
|
|
|
} |
|
|
|