remove crown instruction

This commit is contained in:
Hardhat Chad
2024-07-20 19:16:36 +00:00
parent 42a66de106
commit 7954bfa9ec
9 changed files with 28 additions and 120 deletions

View File

@@ -19,6 +19,9 @@ pub struct Bus {
/// The rewards this bus would have paid out in the current epoch if there no limit.
/// Used to calculate the updated reward rate.
pub theoretical_rewards: u64,
/// The largest known stake balance seen by the bus this epoch.
pub top_balance: u64,
}
impl Discriminator for Bus {

View File

@@ -1,6 +1,5 @@
use bytemuck::{Pod, Zeroable};
use shank::ShankAccount;
use solana_program::pubkey::Pubkey;
use crate::utils::{impl_account_from_bytes, impl_to_bytes, Discriminator};
@@ -19,11 +18,8 @@ pub struct Config {
/// 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,
/// The largest known stake balance on the network from the last epoch.
pub top_balance: u64,
}
impl Discriminator for Config {