From b6bfe7cb157d4e64b674419a2f8e8e82f3d82f17 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 28 Feb 2017 15:49:37 +0100 Subject: [PATCH] set: different thresholds --- src/set/gnunet-service-set_union.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index b51939da0..90f52ff47 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c @@ -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, -- 2.25.1