|
@ -687,8 +687,13 @@ void iguana_startconnection(void *arg) |
|
|
int32_t i,n; uint16_t port; char ipaddr[64]; struct iguana_peer *addr = arg; struct iguana_info *coin = 0; |
|
|
int32_t i,n; uint16_t port; char ipaddr[64]; struct iguana_peer *addr = arg; struct iguana_info *coin = 0; |
|
|
if ( addr == 0 || (coin= iguana_coinfind(addr->symbol)) == 0 ) |
|
|
if ( addr == 0 || (coin= iguana_coinfind(addr->symbol)) == 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("iguana_startconnection nullptrs addr.%p (%s) coin.%p\n",addr,addr!=0?addr->symbol:"",coin); |
|
|
if ( addr != 0 && addr->symbol[0] != 0 ) |
|
|
return; |
|
|
coin = iguana_coinfind(addr->symbol); |
|
|
|
|
|
if ( addr == 0 || coin == 0 ) |
|
|
|
|
|
{ |
|
|
|
|
|
printf("iguana_startconnection nullptrs addr.%p (%s) coin.%p\n",addr,addr!=0?addr->symbol:"",coin); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if ( coin->virtualchain != 0 || coin->peers == 0 ) |
|
|
if ( coin->virtualchain != 0 || coin->peers == 0 ) |
|
|
return; |
|
|
return; |
|
|