diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-28 15:19:15 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-28 15:19:15 +0100 |
commit | d0b5f5ba30665a8a25cec029e298a4f2c575df14 (patch) | |
tree | 32ec266ec18eeb64a04611d292e5477c57b87d4f /src/set | |
parent | b567a7a9231f91f0c5f7c074bb6904471e3f85ad (diff) | |
download | gnunet-d0b5f5ba30665a8a25cec029e298a4f2c575df14.tar.gz gnunet-d0b5f5ba30665a8a25cec029e298a4f2c575df14.zip |
start with larger IBF
Diffstat (limited to 'src/set')
-rw-r--r-- | src/set/gnunet-service-set_union.c | 5 |
1 files 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) | |||
761 | ibf_order++; | 761 | ibf_order++; |
762 | if (ibf_order > MAX_IBF_ORDER) | 762 | if (ibf_order > MAX_IBF_ORDER) |
763 | ibf_order = MAX_IBF_ORDER; | 763 | ibf_order = MAX_IBF_ORDER; |
764 | return ibf_order; | 764 | // add one for correction |
765 | return ibf_order + 1; | ||
765 | } | 766 | } |
766 | 767 | ||
767 | 768 | ||
@@ -1556,7 +1557,7 @@ handle_p2p_full_element (void *cls, | |||
1556 | } | 1557 | } |
1557 | 1558 | ||
1558 | if ( (GNUNET_YES == op->spec->byzantine) && | 1559 | if ( (GNUNET_YES == op->spec->byzantine) && |
1559 | (op->state->received_total > 150) && | 1560 | (op->state->received_total > 128) && |
1560 | (op->state->received_fresh < op->state->received_total / 3) ) | 1561 | (op->state->received_fresh < op->state->received_total / 3) ) |
1561 | { | 1562 | { |
1562 | /* The other peer gave us lots of old elements, there's something wrong. */ | 1563 | /* The other peer gave us lots of old elements, there's something wrong. */ |