Skip to content

Commit

Permalink
refactoring: remove unused function (#12842)
Browse files Browse the repository at this point in the history
Cleaning up the unused function `EpochInfo::v1_test`.
  • Loading branch information
Trisfald authored Jan 30, 2025
1 parent 94abfca commit 79378e7
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions core/primitives/src/epoch_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,40 +258,6 @@ impl EpochInfo {
}
}

pub fn v1_test() -> Self {
Self::V1(EpochInfoV1 {
epoch_height: 10,
validators: vec![
ValidatorStakeV1 {
account_id: "test".parse().unwrap(),
public_key: "ed25519:6E8sCci9badyRkXb3JoRpBj5p8C6Tw41ELDZoiihKEtp"
.parse()
.unwrap(),
stake: 0,
},
ValidatorStakeV1 {
account_id: "validator".parse().unwrap(),
public_key: "ed25519:9E8sCci9badyRkXb3JoRpBj5p8C6Tw41ELDZoiihKEtp"
.parse()
.unwrap(),
stake: 0,
},
],
validator_to_index: HashMap::new(),
block_producers_settlement: vec![0u64, 1u64],
chunk_producers_settlement: vec![vec![0u64, 1u64]],
hidden_validators_settlement: vec![],
fishermen: vec![],
fishermen_to_index: HashMap::new(),
stake_change: BTreeMap::new(),
validator_reward: HashMap::new(),
validator_kickout: HashMap::new(),
minted_amount: 1,
seat_price: 1,
protocol_version: 1,
})
}

#[inline]
pub fn epoch_height_mut(&mut self) -> &mut EpochHeight {
match self {
Expand Down

0 comments on commit 79378e7

Please sign in to comment.