From 618117998ece797319bd5aba765ad51120872d83 Mon Sep 17 00:00:00 2001
From: Piotr Roslaniec
Date: Mon, 23 Jan 2023 18:13:12 +0100
Subject: [PATCH] replace redundant variable
---
ferveo/benches/benchmarks/pvdkg.rs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ferveo/benches/benchmarks/pvdkg.rs b/ferveo/benches/benchmarks/pvdkg.rs
index c95504bf..82600589 100644
--- a/ferveo/benches/benchmarks/pvdkg.rs
+++ b/ferveo/benches/benchmarks/pvdkg.rs
@@ -64,12 +64,13 @@ pub fn setup_dkg(
let keypairs = gen_keypairs(num);
let validators = gen_validators(&keypairs);
let me = validators[validator].clone();
+ let shares_num = 300;
PubliclyVerifiableDkg::new(
validators,
Params {
tau: 0,
- security_threshold: 300 / 3,
- shares_num: 300,
+ security_threshold: shares_num / 3,
+ shares_num,
retry_after: 2,
},
&me,