|
|
@ -1206,10 +1206,13 @@ int32_t iguana_launchcoin(struct supernet_info *myinfo,char *symbol,cJSON *json, |
|
|
|
coins = mycalloc('A',1+1,sizeof(*coins)); |
|
|
|
if ( (coin= iguana_setcoin(symbol,coins,maxpeers,maxrecvcache,services,initialheight,maphash,minconfirms,maxrequests,maxbundles,json,virtcoin)) != 0 ) |
|
|
|
{ |
|
|
|
coins[0] = (void *)((long)1); |
|
|
|
coins[1] = coin; |
|
|
|
printf("launch.%p coinloop for.%s services.%llx started.%p peers.%p\n",coin,coin->symbol,(long long)services,coin->started,coin->peers); |
|
|
|
coin->launched = iguana_launch(coin,"iguana_coinloop",iguana_coinloop,coins,IGUANA_PERMTHREAD); |
|
|
|
if ( iguana_isnotarychain(coin->symbol) < 0 ) |
|
|
|
{ |
|
|
|
coins[0] = (void *)((long)1); |
|
|
|
coins[1] = coin; |
|
|
|
printf("launch.%p coinloop for.%s services.%llx started.%p peers.%p\n",coin,coin->symbol,(long long)services,coin->started,coin->peers); |
|
|
|
coin->launched = iguana_launch(coin,"iguana_coinloop",iguana_coinloop,coins,IGUANA_PERMTHREAD); |
|
|
|
} |
|
|
|
coin->active = 1; |
|
|
|
coin->started = 0; |
|
|
|
return(1); |
|
|
|