gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: set: different thresholds


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: set: different thresholds
Date: Tue, 28 Feb 2017 15:49:41 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new b6bfe7cb1 set: different thresholds
b6bfe7cb1 is described below

commit b6bfe7cb157d4e64b674419a2f8e8e82f3d82f17
Author: Florian Dold <address@hidden>
AuthorDate: Tue Feb 28 15:49:37 2017 +0100

    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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]