From d0b5f5ba30665a8a25cec029e298a4f2c575df14 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 28 Feb 2017 15:19:15 +0100 Subject: [PATCH] start with larger IBF --- src/set/gnunet-service-set_union.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index a19c36206..1a421063e 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c @@ -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. */ -- 2.25.1