allow sender_lottery.probability=0

This commit is contained in:
Youngjoon Lee 2024-07-08 16:22:17 +09:00
parent dc1d3934d3
commit fa407f2494
No known key found for this signature in database
GPG Key ID: B4253AFBA618BF4D
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class LotteryConfig:
def validate(self):
assert self.interval_sec > 0
assert self.probability > 0
assert self.probability >= 0
assert self.seed is not None

View File

@ -7,7 +7,7 @@ simulation:
logic:
sender_lottery:
interval_sec: 1
probability: 0.01
probability: 0.00
seed: 10
mixnet: