aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-28 15:49:37 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-28 15:49:37 +0100
commitb6bfe7cb157d4e64b674419a2f8e8e82f3d82f17 (patch)
tree6fa14b5cb45491900d90af28816cdb7806f42df9
parentf56a318a49c109d0246d4b5d188cffb50d2b91c8 (diff)
downloadgnunet-b6bfe7cb157d4e64b674419a2f8e8e82f3d82f17.tar.gz
gnunet-b6bfe7cb157d4e64b674419a2f8e8e82f3d82f17.zip
set: different thresholds
-rw-r--r--src/set/gnunet-service-set_union.c6
1 files 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,
889 } 889 }
890 890
891 891
892 if ( (GNUNET_YES == op->spec->force_full) || (diff > op->state->initial_size / 2)) 892 if ( (GNUNET_YES == op->spec->force_full) || (diff > op->state->initial_size / 4))
893 { 893 {
894 LOG (GNUNET_ERROR_TYPE_INFO, 894 LOG (GNUNET_ERROR_TYPE_INFO,
895 "Sending full set (diff=%d, own set=%u)\n", 895 "Sending full set (diff=%d, own set=%u)\n",
@@ -1565,8 +1565,8 @@ handle_p2p_full_element (void *cls,
1565 } 1565 }
1566 1566
1567 if ( (GNUNET_YES == op->spec->byzantine) && 1567 if ( (GNUNET_YES == op->spec->byzantine) &&
1568 (op->state->received_total > 128) && 1568 (op->state->received_total > 128 + op->state->received_fresh * 4) &&
1569 (op->state->received_fresh < op->state->received_total / 3) ) 1569 (op->state->received_fresh < op->state->received_total / 6) )
1570 { 1570 {
1571 /* The other peer gave us lots of old elements, there's something wrong. */ 1571 /* The other peer gave us lots of old elements, there's something wrong. */
1572 LOG (GNUNET_ERROR_TYPE_ERROR, 1572 LOG (GNUNET_ERROR_TYPE_ERROR,