{
struct Operation *op = cls;
struct GNUNET_SET_ElementMessage *emsg;
- struct GNUNET_SET_Element *el = value;
+ struct ElementEntry *ee = value;
+ struct GNUNET_SET_Element *el = &ee->element;
struct GNUNET_MQ_Envelope *ev;
ev = GNUNET_MQ_msg_extra (emsg, el->size, GNUNET_MESSAGE_TYPE_SET_UNION_P2P_FULL_ELEMENT);
}
}
- if (op->state->received_total > 8 && op->state->received_fresh < op->state->received_total / 3)
+ if ( (GNUNET_YES == op->spec->byzantine) &&
+ (op->state->received_total > 8) &&
+ (op->state->received_fresh < op->state->received_total / 3) )
{
/* The other peer gave us lots of old elements, there's something wrong. */
GNUNET_break_op (0);
struct GNUNET_MQ_Envelope *mqm;
struct GNUNET_SET_ElementMessage *msg;
+ LOG (GNUNET_ERROR_TYPE_INFO, "adding element of type %u\n", (unsigned) element->element_type);
+
if (GNUNET_YES == set->invalid)
{
if (NULL != cont)
static void
result_cb_set2 (void *cls,
const struct GNUNET_SET_Element *element,
+ uint64_t size,
enum GNUNET_SET_Status status)
{
switch (status)