From 5bf1ad75954586b2a722164853f0a8dbd4e03fef Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Tue, 30 Jul 2024 14:29:25 +0200 Subject: [PATCH] consensus: remove `MINIMUM_STAKE` --- consensus/src/user/provisioners.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/consensus/src/user/provisioners.rs b/consensus/src/user/provisioners.rs index a21932023a..934941f6d1 100644 --- a/consensus/src/user/provisioners.rs +++ b/consensus/src/user/provisioners.rs @@ -6,6 +6,8 @@ use crate::user::sortition; use crate::user::stake::Stake; +use execution_core::dusk; +use execution_core::stake::MINIMUM_STAKE; use node_data::bls::{PublicKey, PublicKeyBytes}; use node_data::StepName; @@ -16,8 +18,7 @@ use std::mem; use super::committee::Committee; -pub const DUSK: u64 = 1_000_000_000; -const MINIMUM_STAKE: u64 = 1_000 * DUSK; +pub const DUSK: u64 = dusk(1.0); #[derive(Clone, Debug)] pub struct Provisioners {