From 7db852f1c8d89ce92335f55946ac67732f2fc8a3 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Wed, 15 May 2024 17:24:23 +0000 Subject: [PATCH] min difficulty --- src/consts.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/consts.rs b/src/consts.rs index bba86e8..dbd6c0b 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -9,7 +9,7 @@ pub const INITIAL_BASE_REWARD_RATE: u64 = 10u64.pow(3u32); pub const INITIAL_TOLERANCE: i64 = 5; /// The minimum difficulty required of all submitted hashes. -pub const MIN_DIFFICULTY: u32 = 12; +pub const MIN_DIFFICULTY: u32 = 8; // 12; /// The decimal precision of the Ore token. /// There are 100 billion indivisible units per Ore (called "grains"). @@ -24,6 +24,9 @@ pub const ONE_MINUTE: i64 = 60; /// The duration of one day, in seconds. pub const ONE_DAY: i64 = 86400; +/// The duration of one year, in minutes. +pub const ONE_YEAR: u64 = 525600; + /// The number of minutes in an Ore epoch. pub const EPOCH_MINUTES: i64 = 1; @@ -55,10 +58,6 @@ static_assertions::const_assert!( (MAX_EPOCH_REWARDS / BUS_COUNT as u64) * BUS_COUNT as u64 == MAX_EPOCH_REWARDS ); -/// The duration of two years, in minutes. -/// Used to calculate the staking reward multiplier. -pub const ONE_YEAR: u64 = 60 * 24 * 365; - /// The seed of the bus account PDA. pub const BUS: &[u8] = b"bus";