set: different thresholds
authorFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 14:49:37 +0000 (15:49 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 14:49:37 +0000 (15:49 +0100)
src/set/gnunet-service-set_union.c

index b51939da0c73ee884a299906bfee0f702d6c3610..90f52ff47b53b8fc5f809c82a0a1c415cb16ebd3 100644 (file)
@@ -889,7 +889,7 @@ handle_p2p_strata_estimator (void *cls,
   }
 
 
-  if ( (GNUNET_YES == op->spec->force_full) || (diff > op->state->initial_size / 2))
+  if ( (GNUNET_YES == op->spec->force_full) || (diff > op->state->initial_size / 4))
   {
     LOG (GNUNET_ERROR_TYPE_INFO,
          "Sending full set (diff=%d, own set=%u)\n",
@@ -1565,8 +1565,8 @@ handle_p2p_full_element (void *cls,
   }
 
   if ( (GNUNET_YES == op->spec->byzantine) && 
-       (op->state->received_total > 128) && 
-       (op->state->received_fresh < op->state->received_total / 3) )
+       (op->state->received_total > 128 + op->state->received_fresh * 4) && 
+       (op->state->received_fresh < op->state->received_total / 6) )
   {
     /* The other peer gave us lots of old elements, there's something wrong. */
     LOG (GNUNET_ERROR_TYPE_ERROR,