Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ca6b7f9a8c
  1. 3
      iguana/iguana_peers.c
  2. 2
      iguana/main.c

3
iguana/iguana_peers.c

@ -583,6 +583,7 @@ void iguana_startconnection(void *arg)
}
if ( strcmp("127.0.0.1",addr->ipaddr) == 0 && (coin->myservices & NODE_NETWORK) != 0 )
{
iguana_iAkill(coin,addr,0);
printf("avoid self-loopback\n");
return;
}
@ -968,7 +969,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
}
if ( flag == 0 )
{
if ( time(NULL) > addr->pendtime+30 )
if ( 0 && time(NULL) > addr->pendtime+30 )
{
if ( addr->pendblocks > 0 )
addr->pendblocks--;

2
iguana/main.c

@ -318,7 +318,7 @@ void iguana_main(void *arg)
#ifdef __APPLE__
sleep(1);
char *str;
if ( (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1,\"maxpeers\":16,\"coin\":\"BTCD\",\"active\":1}"),0)) != 0 )
if ( (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1,\"maxpeers\":16,\"coin\":\"BTC\",\"active\":1}"),0)) != 0 )
{
printf("got.(%s)\n",str);
free(str);

Loading…
Cancel
Save