Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0d0b3f88df
  1. 2
      basilisk/basilisk.c
  2. 2
      basilisk/basilisk_CMD.c

2
basilisk/basilisk.c

@ -884,7 +884,7 @@ void basilisks_loop(void *arg)
if ( pending->dependents == 0 || pending->childrendone >= pending->numchildren ) if ( pending->dependents == 0 || pending->childrendone >= pending->numchildren )
{ {
HASH_DELETE(hh,myinfo->basilisks.issued,pending); HASH_DELETE(hh,myinfo->basilisks.issued,pending);
if ( --pending->refcount == 0 && 0 ) if ( --pending->refcount == 0 )
{ {
if ( pending->dependents != 0 ) if ( pending->dependents != 0 )
free(pending->dependents); free(pending->dependents);

2
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) 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; 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 ) if ( (btcd= iguana_coinfind("BTCD")) == 0 || ipbits == 0 )
return(clonestr("{\"error\":\"add relay needs BTCD and ipbits\"}")); return(clonestr("{\"error\":\"add relay needs BTCD and ipbits\"}"));
for (i=0; i<myinfo->numrelays; i++) for (i=0; i<myinfo->numrelays; i++)

Loading…
Cancel
Save