begin testing new staking mechanism

This commit is contained in:
Hardhat Chad
2024-06-27 13:17:53 +00:00
parent f580f7fd58
commit 77bf195139
4 changed files with 29 additions and 16 deletions

View File

@@ -8,7 +8,6 @@ use crate::{
/// Bus accounts are responsible for distributing mining rewards.
/// There are 8 busses total to minimize write-lock contention and allow for parallel mine operations.
/// Every epoch, the bus account rewards counters are topped up to 0.25 ORE each (2 ORE split amongst 8 busses).
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, ShankAccount, Zeroable)]
pub struct Bus {

View File

@@ -17,8 +17,11 @@ pub struct Config {
/// The base reward rate paid out for a hash of minimum difficulty.
pub base_reward_rate: u64,
/// The timestamp of the last reset
/// The timestamp of the last reset.
pub last_reset_at: i64,
/// The largest stake account on the network.
pub max_stake: u64,
}
impl Discriminator for Config {