Skip to content

Commit

Permalink
accidentally removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed May 1, 2024
1 parent 1df8ee1 commit d339a0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion programs/validator-history/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Config {

static_assertions::const_assert_eq!(size_of::<ValidatorHistoryEntry>(), 128);

#[derive(TypeLayout)]
#[derive(AnchorSerialize, TypeLayout)]
#[zero_copy]

Check failure on line 41 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `state::ValidatorHistoryEntry`
pub struct ValidatorHistoryEntry {
pub activated_stake_lamports: u64,
Expand Down Expand Up @@ -103,6 +103,7 @@ pub struct ClientVersion {

const MAX_ITEMS: usize = 512;

#[derive(AnchorSerialize)]
#[zero_copy]

Check failure on line 107 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `state::CircBuf`
pub struct CircBuf {
pub idx: u64,
Expand Down Expand Up @@ -269,6 +270,7 @@ pub enum ValidatorHistoryVersion {

static_assertions::const_assert_eq!(size_of::<ValidatorHistory>(), 65848);

#[derive(AnchorSerialize)]
#[account(zero_copy)]

Check failure on line 274 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `state::ValidatorHistory`
pub struct ValidatorHistory {
// Cannot be enum due to Pod and Zeroable trait limitations
Expand Down Expand Up @@ -656,6 +658,7 @@ impl ValidatorHistory {
}
}

#[derive(AnchorSerialize)]
#[account(zero_copy)]

Check failure on line 662 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `state::ClusterHistory`
pub struct ClusterHistory {
pub struct_version: u64,
Expand All @@ -666,6 +669,7 @@ pub struct ClusterHistory {
pub history: CircBufCluster,
}

#[derive(AnchorSerialize)]
#[zero_copy]

Check failure on line 673 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `state::ClusterHistoryEntry`
pub struct ClusterHistoryEntry {
pub total_blocks: u32,
Expand All @@ -687,6 +691,7 @@ impl Default for ClusterHistoryEntry {
}
}

#[derive(AnchorSerialize)]
#[zero_copy]

Check failure on line 695 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `CircBufCluster`

Check failure on line 695 in programs/validator-history/src/state.rs

View workflow job for this annotation

GitHub Actions / udeps

conflicting implementations of trait `anchor_lang::IdlBuild` for type `state::CircBufCluster`
pub struct CircBufCluster {
pub idx: u64,
Expand Down

0 comments on commit d339a0f

Please sign in to comment.