From 3a703434daec6e7057a0480a65e3a60f686dac33 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:37:02 +0900 Subject: [PATCH] fix --- mixnet/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mixnet/config.py b/mixnet/config.py index 716a72c..7a52e83 100644 --- a/mixnet/config.py +++ b/mixnet/config.py @@ -37,9 +37,7 @@ class MixMembership: The pre-selected mix_destination is used as a last mix node in the route, so that associated packets can be merged together into a original message. """ - route = [self.choose() for _ in range(num_hops - 1)] - route.append(last_mix) - return route + return [*(self.choose() for _ in range(num_hops - 1)), last_mix] def choose(self) -> NodeInfo: """