libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit 1767337a644615aa438190b37d3c4856783b43ef
parent 1934a4ce81b8257f5feb3901f628952819be4f25
Author: Jacki <jacki@thejackimonster.de>
Date:   Tue,  4 Feb 2025 16:30:54 +0100

Optimize causality verification in case of pong messages

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
Mtools/gnunet_messenger_ping.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/gnunet_messenger_ping.c b/tools/gnunet_messenger_ping.c @@ -407,7 +407,7 @@ message_callback (void *cls, if (GNUNET_YES != GNUNET_CONTAINER_multishortmap_contains_value(ping->pong_map, hash_contact (sender), NULL)) continue; - if (!is_hash_following (tool, hash, &key)) + if ((!(tool->require_pong)) && (!is_hash_following (tool, hash, &key))) continue; struct GNUNET_TIME_Absolute *time = GNUNET_new(struct GNUNET_TIME_Absolute);