jl777 8 years ago
parent
commit
1e518590ce
  1. 2
      basilisk/basilisk_CMD.c
  2. 4
      iguana/iguana_wallet.c

2
basilisk/basilisk_CMD.c

@ -95,8 +95,8 @@ char *basilisk_addrelay_info(struct supernet_info *myinfo,uint8_t *pubkey33,uint
rp->pubkey = pubkey;
if ( pubkey33 != 0 && pubkey33[0] != 0 )
memcpy(rp->pubkey33,pubkey33,33);
//printf("updated relay[%d] %x\n",i,ipbits);
basilisk_setmyid(myinfo);
printf("updated relay[%d] %x vs mine.%x\n",i,ipbits,myinfo->myaddr.myipbits);
return(clonestr("{\"error\":\"relay already there\"}"));
}
}

4
iguana/iguana_wallet.c

@ -1178,7 +1178,11 @@ ZERO_ARGS(bitcoinrpc,getinfo)
if ( strcmp(coin->symbol,"NOTARY") == 0 )
{
for (j=0; j<m; j++)
{
printf("+%s ",jstri(fullnodes,j));
basilisk_addrelay_info(myinfo,0,(uint32_t)calc_ipbits(jstri(fullnodes,j)),GENESIS_PUBKEY);
}
printf(" m.%d relays added\n",m);
incr = sqrt(m);
if ( incr < 1 )
incr = 1, j = 0;

Loading…
Cancel
Save