diff --git a/src/decentralizepy/communication/TCPRandomWalkRouting.py b/src/decentralizepy/communication/TCPRandomWalkRouting.py index 8380840a1dd2e816c12211c334316e75ef64fa8a..dbb82341a2eebaaad6534ea6183259f0968ca343 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)