From b0482fa898abf8b22bbe63d3f95b050548685242 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:23:56 +0900 Subject: [PATCH] more realistic proposer --- mixnet/ordering/src/iteration.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mixnet/ordering/src/iteration.rs b/mixnet/ordering/src/iteration.rs index d8c4356..04afc99 100644 --- a/mixnet/ordering/src/iteration.rs +++ b/mixnet/ordering/src/iteration.rs @@ -263,10 +263,7 @@ impl Iteration { rng: &mut StdRng, ) -> bool { match paramset.sender_data_msg_interval { - Some(interval) => { - vtime - recent_vtime_sent_data_msg_by_sender >= interval - && Self::try_probability(rng, paramset.sender_data_msg_prob) - } + Some(interval) => vtime - recent_vtime_sent_data_msg_by_sender >= interval, None => Self::try_probability(rng, paramset.sender_data_msg_prob), } }