Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ad3110a079
  1. 6
      iguana/iguana_peers.c
  2. 2
      iguana/iguana_recv.c

6
iguana/iguana_peers.c

@ -924,7 +924,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
buf = mycalloc('r',1,bufsize);
printf("send version myservices.%llu to (%s)\n",(long long)coin->myservices,addr->ipaddr);
//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);
iguana_send_version(coin,addr,coin->myservices);
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 )
{
printf("pollQ!\n");
//printf("pollQ!\n");
flag++;
}
if ( addr->dead != 0 )
@ -994,7 +994,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
{
if ( run++ > 1000 )
{
printf("sleep\n");
//printf("sleep\n");
sleep(1);
}
else if ( addr->rank != 1 )

2
iguana/iguana_recv.c

@ -142,7 +142,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i
}
}
}
copyflag = 1 * (strcmp(coin->symbol,"BTC") != 0);
copyflag = 1;// * (strcmp(coin->symbol,"BTC") != 0);
req = iguana_bundlereq(coin,addr,'B',copyflag * recvlen);
req->recvlen = recvlen;
if ( copyflag != 0 && recvlen != 0 )

Loading…
Cancel
Save