From 3c945ffedfa129d330329d8d72d5e7afdb8966c1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 21 Jun 2016 15:49:35 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 2 +- iguana/iguana777.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 50cd1679a..0f10adc50 100755 --- a/basilisk/basilisk.c +++ b/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); if ( pending->dependents != 0 ) 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; inumresults; i++) if ( pending->results[i] != 0 ) free(pending->results[i]), pending->results[i] = 0; diff --git a/iguana/iguana777.c b/iguana/iguana777.c index ec52cbd66..cfe3e1193 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -954,8 +954,11 @@ int32_t iguana_launchcoin(struct supernet_info *myinfo,char *symbol,cJSON *json) coin->started = 0; if ( strcmp("BTCD",coin->symbol) == 0 ) { - basilisk_ensurerelay(coin,(uint32_t)calc_ipbits("78.47.196.146")); - basilisk_ensurerelay(coin,(uint32_t)calc_ipbits("5.9.102.210")); + char *str; + 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); }