projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b567a7a
)
start with larger IBF
author
Florian Dold
<florian.dold@gmail.com>
Tue, 28 Feb 2017 14:19:15 +0000
(15:19 +0100)
committer
Florian Dold
<florian.dold@gmail.com>
Tue, 28 Feb 2017 14:19:15 +0000
(15:19 +0100)
src/set/gnunet-service-set_union.c
patch
|
blob
|
history
diff --git
a/src/set/gnunet-service-set_union.c
b/src/set/gnunet-service-set_union.c
index a19c36206033b01c18ccf86b342a22ee2390d110..1a421063eb2aa450a87f9340c3477fa553a13040 100644
(file)
--- 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 > 1
50
) &&
+ (op->state->received_total > 1
28
) &&
(op->state->received_fresh < op->state->received_total / 3) )
{
/* The other peer gave us lots of old elements, there's something wrong. */