diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 9574fef5e..6306efdf9 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -884,7 +884,7 @@ void basilisks_loop(void *arg) if ( pending->dependents == 0 || pending->childrendone >= pending->numchildren ) { HASH_DELETE(hh,myinfo->basilisks.issued,pending); - if ( --pending->refcount == 0 && 0 ) + if ( --pending->refcount == 0 ) { if ( pending->dependents != 0 ) free(pending->dependents); diff --git a/basilisk/basilisk_CMD.c b/basilisk/basilisk_CMD.c index 68b254a4a..e43f30b84 100755 --- a/basilisk/basilisk_CMD.c +++ b/basilisk/basilisk_CMD.c @@ -33,6 +33,8 @@ struct iguana_peer *basilisk_ensurerelay(struct iguana_info *btcd,uint32_t ipbit char *basilisk_addrelay_info(struct supernet_info *myinfo,uint8_t *pubkey33,uint32_t ipbits,bits256 pubkey) { int32_t i; struct basilisk_relay *rp; struct iguana_info *btcd; + return(clonestr("{\"error\":\"addrelay info disabled\"}")); + if ( (btcd= iguana_coinfind("BTCD")) == 0 || ipbits == 0 ) return(clonestr("{\"error\":\"add relay needs BTCD and ipbits\"}")); for (i=0; inumrelays; i++)