From 1164f92ea1827051d325ec08b2be0022123a4c0d Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 26 Sep 2025 22:48:52 -0400 Subject: [PATCH] Update usage of now-associated const in `processor/key-gen` --- processor/key-gen/src/generators.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/key-gen/src/generators.rs b/processor/key-gen/src/generators.rs index d76bb180..e83df700 100644 --- a/processor/key-gen/src/generators.rs +++ b/processor/key-gen/src/generators.rs @@ -6,7 +6,7 @@ use std::{ use dkg::*; -use serai_primitives::constants::MAX_KEY_SHARES_PER_SET; +use serai_primitives::validator_sets::KeyShares; /// A cache of the generators used by the eVRF DKG. /// @@ -29,8 +29,8 @@ pub(crate) fn generators() -> &'static Generators { .or_insert_with(|| { // If we haven't prior needed generators for this Ciphersuite, generate new ones Box::leak(Box::new(Generators::::new( - (MAX_KEY_SHARES_PER_SET * 2 / 3) + 1, - MAX_KEY_SHARES_PER_SET, + (KeyShares::MAX_PER_SET * 2 / 3) + 1, + KeyShares::MAX_PER_SET, ))) }) .downcast_ref()