From 63db8b1d761dd51225b9491ef5ce823cdf228f5f Mon Sep 17 00:00:00 2001 From: Jeffrey Wigger <jeffrey.wigger@epfl.ch> Date: Tue, 14 Jun 2022 03:23:22 +0200 Subject: [PATCH] run reddit dynamic jwins 4 --- src/decentralizepy/communication/TCPRandomWalkRouting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decentralizepy/communication/TCPRandomWalkRouting.py b/src/decentralizepy/communication/TCPRandomWalkRouting.py index 8380840..dbb8234 100644 --- a/src/decentralizepy/communication/TCPRandomWalkRouting.py +++ b/src/decentralizepy/communication/TCPRandomWalkRouting.py @@ -722,7 +722,7 @@ class TCPRandomWalkRoutingInternal(TCPRandomWalkBase): logging.debug("send: rw? {}".format(data.get("rw", False))) data_copy = data.copy() - to_send = self.encrypt(data) + to_send = self.encrypt(data_copy) if uid == "rw" and data.get("rw", False): # a rw message, they are shots into the blind, we need not track them, # at least no as long as we send them before the testing. @@ -741,7 +741,7 @@ class TCPRandomWalkRoutingInternal(TCPRandomWalkBase): return elif type(uid) == tuple and uid[0] == "all": assert uid[1] == self.current_round - self.current_data = data_copy + self.current_data = data logging.debug(f"Sending to all neighbors {self.current_neighbors}") for n in self.current_neighbors: send(n, to_send) -- GitLab