|
@ -924,7 +924,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) |
|
|
buf = mycalloc('r',1,bufsize); |
|
|
buf = mycalloc('r',1,bufsize); |
|
|
printf("send version myservices.%llu to (%s)\n",(long long)coin->myservices,addr->ipaddr); |
|
|
printf("send version myservices.%llu to (%s)\n",(long long)coin->myservices,addr->ipaddr); |
|
|
//if ( addr->supernet != 0 )
|
|
|
//if ( addr->supernet != 0 )
|
|
|
iguana_send_supernet(coin,addr,"{\"agent\":\"SuperNET\",\"method\":\"getpeers\"}",0); |
|
|
// iguana_send_supernet(coin,addr,"{\"agent\":\"SuperNET\",\"method\":\"getpeers\"}",0);
|
|
|
sleep(1); |
|
|
sleep(1); |
|
|
iguana_send_version(coin,addr,coin->myservices); |
|
|
iguana_send_version(coin,addr,coin->myservices); |
|
|
iguana_queue_send(coin,addr,0,serialized,"getaddr",0,0,0); |
|
|
iguana_queue_send(coin,addr,0,serialized,"getaddr",0,0,0); |
|
@ -980,7 +980,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) |
|
|
{ |
|
|
{ |
|
|
if ( iguana_pollQsPT(coin,addr) > 0 ) |
|
|
if ( iguana_pollQsPT(coin,addr) > 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("pollQ!\n"); |
|
|
//printf("pollQ!\n");
|
|
|
flag++; |
|
|
flag++; |
|
|
} |
|
|
} |
|
|
if ( addr->dead != 0 ) |
|
|
if ( addr->dead != 0 ) |
|
@ -994,7 +994,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) |
|
|
{ |
|
|
{ |
|
|
if ( run++ > 1000 ) |
|
|
if ( run++ > 1000 ) |
|
|
{ |
|
|
{ |
|
|
printf("sleep\n"); |
|
|
//printf("sleep\n");
|
|
|
sleep(1); |
|
|
sleep(1); |
|
|
} |
|
|
} |
|
|
else if ( addr->rank != 1 ) |
|
|
else if ( addr->rank != 1 ) |
|
|