From d130df3b9115d7f74a065f4c7db69f815b248109 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 18 Jun 2016 15:02:28 -0300 Subject: [PATCH] test --- basilisk/basilisk_CMD.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basilisk/basilisk_CMD.c b/basilisk/basilisk_CMD.c index dc3643ae4..0f3bd02cb 100755 --- a/basilisk/basilisk_CMD.c +++ b/basilisk/basilisk_CMD.c @@ -54,6 +54,8 @@ char *basilisk_addrelay_info(struct supernet_info *myinfo,uint8_t *pubkey33,uint rp = &myinfo->relays[i]; rp->ipbits = ipbits; rp->addr = basilisk_ensurerelay(btcd,rp->ipbits); + if ( myinfo->numrelays < sizeof(myinfo->relays)/sizeof(*myinfo->relays) ) + myinfo->numrelays++; for (i=0; inumrelays; i++) myinfo->relaybits[i] = myinfo->relays[i].ipbits; revsort32(&myinfo->relaybits[0],myinfo->numrelays,sizeof(myinfo->relaybits[0]));