From fc044b55aefc0a0c4b615b12a7aab7c0d8c75939 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Jun 2016 12:38:21 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index ec7d5d005..598cb1417 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -686,6 +686,8 @@ void iguana_coinloop(void *arg) coins++; printf("begin coinloop[%d]\n",n); coin = coins[0]; + if ( coin->peers == 0 ) + coin->peers = calloc(1,sizeof(*coin->peers)); iguana_launchpeer(coin,"127.0.0.1"); memset(zero.bytes,0,sizeof(zero)); while ( 1 )