start with larger IBF
authorFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 14:19:15 +0000 (15:19 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 14:19:15 +0000 (15:19 +0100)
src/set/gnunet-service-set_union.c

index a19c36206033b01c18ccf86b342a22ee2390d110..1a421063eb2aa450a87f9340c3477fa553a13040 100644 (file)
@@ -761,7 +761,8 @@ get_order_from_difference (unsigned int diff)
     ibf_order++;
   if (ibf_order > MAX_IBF_ORDER)
     ibf_order = MAX_IBF_ORDER;
-  return ibf_order;
+  // add one for correction
+  return ibf_order + 1;
 }
 
 
@@ -1556,7 +1557,7 @@ handle_p2p_full_element (void *cls,
   }
 
   if ( (GNUNET_YES == op->spec->byzantine) && 
-       (op->state->received_total > 150) && 
+       (op->state->received_total > 128) && 
        (op->state->received_fresh < op->state->received_total / 3) )
   {
     /* The other peer gave us lots of old elements, there's something wrong. */