Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b5cd9b67d7
  1. 2
      iguana/iguana_accept.c
  2. 2
      iguana/iguana_peers.c

2
iguana/iguana_accept.c

@ -190,7 +190,7 @@ int32_t iguana_peerhdrrequest(struct iguana_info *coin,struct iguana_peer *addr,
retval = iguana_queue_send(coin,addr,0,serialized,"headers",len,0,0);
printf("hdrs request retval.%d len.%d\n",retval,len);
free(serialized);
} else printf("couldnt find header\n");
} //else printf("couldnt find header\n");
return(retval);
}

2
iguana/iguana_peers.c

@ -463,7 +463,7 @@ int32_t iguana_queue_send(struct iguana_info *coin,struct iguana_peer *addr,int3
packet->embargo.millis += delay;
}
memcpy(packet->serialized,serialized,datalen);
printf("%p queue send.(%s) %d to (%s)\n",packet,serialized+4,datalen,addr->ipaddr);
//printf("%p queue send.(%s) %d to (%s)\n",packet,serialized+4,datalen,addr->ipaddr);
queue_enqueue("sendQ",&addr->sendQ,&packet->DL,0);
return(datalen);
}

Loading…
Cancel
Save