Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3c945ffedf
  1. 2
      basilisk/basilisk.c
  2. 7
      iguana/iguana777.c

2
basilisk/basilisk.c

@ -884,7 +884,7 @@ int32_t basilisk_issued_iteration(struct supernet_info *myinfo,struct basilisk_i
HASH_DELETE(hh,myinfo->basilisks.issued,pending); HASH_DELETE(hh,myinfo->basilisks.issued,pending);
if ( pending->dependents != 0 ) if ( pending->dependents != 0 )
free(pending->dependents); free(pending->dependents);
fprintf(stderr,"HASH_DELETE free ptr.%u refcount.%d\n",pending->basilisktag,pending->refcount); //fprintf(stderr,"HASH_DELETE free ptr.%u refcount.%d\n",pending->basilisktag,pending->refcount);
for (i=0; i<pending->numresults; i++) for (i=0; i<pending->numresults; i++)
if ( pending->results[i] != 0 ) if ( pending->results[i] != 0 )
free(pending->results[i]), pending->results[i] = 0; free(pending->results[i]), pending->results[i] = 0;

7
iguana/iguana777.c

@ -954,8 +954,11 @@ int32_t iguana_launchcoin(struct supernet_info *myinfo,char *symbol,cJSON *json)
coin->started = 0; coin->started = 0;
if ( strcmp("BTCD",coin->symbol) == 0 ) if ( strcmp("BTCD",coin->symbol) == 0 )
{ {
basilisk_ensurerelay(coin,(uint32_t)calc_ipbits("78.47.196.146")); char *str;
basilisk_ensurerelay(coin,(uint32_t)calc_ipbits("5.9.102.210")); if ( (str= basilisk_addrelay_info(myinfo,0,(uint32_t)calc_ipbits("78.47.196.146"),GENESIS_PUBKEY)) != 0 )
free(str);
if ( (str= basilisk_addrelay_info(myinfo,0,(uint32_t)calc_ipbits("5.9.102.210"),GENESIS_PUBKEY)) != 0 )
free(str);
} }
return(1); return(1);
} }

Loading…
Cancel
Save