for (i = 0; i < num_peers; i++)
{
int inserted;
+ if (GNUNET_YES != check_peer_known (sub->peer_map, &ids[i]))
+ {
+ LOG (GNUNET_ERROR_TYPE_WARNING,
+ "Peer in history update not known!\n");
+ continue;
+ }
inserted = insert_in_view (sub, &ids[i]);
if (GNUNET_OK == inserted)
{
}
}
// TODO independent of that also get some peers from CADET_get_peers()?
- // TODO log/stat expected pushes/difference to received pushes
if (CustomPeerMap_size (sub->push_map) < HISTOGRAM_FILE_SLOTS)
{
sub->push_recv[CustomPeerMap_size (sub->push_map)]++;
*
* Used to get rid of a PeerID.
*
+ * FIXME: This should also consider currently pending requests
+ * (Pending requests already collect peerids. As long as not all
+ * requested IDs have been collected, they are kept.
+ * Ideally, the @p id should be removed from all pending requests. This
+ * seems quite complicated.)
+ *
* @param sampler the sampler to reinitialise a sampler in.
* @param id the id of the samplers to update.
*/
*
* Used to get rid of a PeerID.
*
+ * FIXME: This should also consider currently pending requests
+ * (Pending requests already collect peerids. As long as not all
+ * requested IDs have been collected, they are kept.
+ * Ideally, the @p id should be removed from all pending requests. This
+ * seems quite complicated.)
+ *
* @param sampler the sampler to reinitialise a sampler element in.
* @param id the id of the sampler elements to update.
*/