From: Florian Dold Date: Tue, 28 Feb 2017 14:19:15 +0000 (+0100) Subject: start with larger IBF X-Git-Tag: taler-0.2.1~8^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0b5f5ba30665a8a25cec029e298a4f2c575df14;p=oweals%2Fgnunet.git start with larger IBF --- 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. */