normalize difficulty

This commit is contained in:
Hardhat Chad
2024-07-19 16:50:25 +00:00
parent 81afef2ef2
commit 52aa6beefa
4 changed files with 19 additions and 13 deletions

View File

@@ -10,20 +10,20 @@ use super::AccountDiscriminator;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, ShankAccount, Zeroable)]
pub struct Config {
// TODO Remove this
pub admin: Pubkey,
/// The base reward rate paid out for a hash of minimum difficulty.
pub base_reward_rate: u64,
/// The timestamp of the last reset.
pub last_reset_at: i64,
/// The largest known stake balance on the network.
pub max_stake: u64,
/// The minimum accepted difficulty.
pub min_difficulty: u64,
/// The address of the proof account with the highest stake balance.
pub top_staker: Pubkey,
/// The largest known stake balance on the network.
pub top_staker_balance: u64,
}
impl Discriminator for Config {