types: remove [Active|Crystallized]State
This commit is contained in:
parent
dffaf351db
commit
c1474976fe
@ -1,17 +0,0 @@
|
||||
use super::Hash256;
|
||||
use super::{Attestation, SpecialRecord};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct ActiveState {
|
||||
pub pending_attestations: Vec<Attestation>,
|
||||
pub pending_specials: Vec<SpecialRecord>,
|
||||
pub recent_block_hashes: Vec<Hash256>,
|
||||
pub randao_mix: Hash256,
|
||||
}
|
||||
|
||||
impl ActiveState {
|
||||
// TODO: implement this.
|
||||
pub fn canonical_root(&self) -> Hash256 {
|
||||
Hash256::zero()
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
use super::crosslink_record::CrosslinkRecord;
|
||||
use super::shard_committee::ShardCommittee;
|
||||
use super::validator_record::ValidatorRecord;
|
||||
use super::Hash256;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct CrystallizedState {
|
||||
pub validator_set_change_slot: u64,
|
||||
pub validators: Vec<ValidatorRecord>,
|
||||
pub crosslinks: Vec<CrosslinkRecord>,
|
||||
pub last_state_recalculation_slot: u64,
|
||||
pub last_finalized_slot: u64,
|
||||
pub last_justified_slot: u64,
|
||||
pub justified_streak: u64,
|
||||
pub shard_and_committee_for_slots: Vec<Vec<ShardCommittee>>,
|
||||
pub deposits_penalized_in_period: Vec<u32>,
|
||||
pub validator_set_delta_hash_chain: Hash256,
|
||||
pub pre_fork_version: u32,
|
||||
pub post_fork_version: u32,
|
||||
pub fork_slot_number: u32,
|
||||
}
|
||||
|
||||
impl CrystallizedState {
|
||||
// TODO: implement this.
|
||||
pub fn canonical_root(&self) -> Hash256 {
|
||||
Hash256::zero()
|
||||
}
|
||||
}
|
@ -5,7 +5,6 @@ extern crate ssz;
|
||||
|
||||
pub mod test_utils;
|
||||
|
||||
pub mod active_state;
|
||||
pub mod attestation_data;
|
||||
pub mod attestation;
|
||||
pub mod beacon_block;
|
||||
@ -14,7 +13,6 @@ pub mod beacon_state;
|
||||
pub mod candidate_pow_receipt_root_record;
|
||||
pub mod casper_slashing;
|
||||
pub mod crosslink_record;
|
||||
pub mod crystallized_state;
|
||||
pub mod deposit;
|
||||
pub mod deposit_data;
|
||||
pub mod deposit_input;
|
||||
@ -33,7 +31,6 @@ pub mod validator_registration;
|
||||
use self::ethereum_types::{H160, H256, U256};
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub use crate::active_state::ActiveState;
|
||||
pub use crate::attestation_data::AttestationData;
|
||||
pub use crate::attestation::Attestation;
|
||||
pub use crate::beacon_block::BeaconBlock;
|
||||
@ -41,7 +38,6 @@ pub use crate::beacon_block_body::BeaconBlockBody;
|
||||
pub use crate::beacon_state::BeaconState;
|
||||
pub use crate::casper_slashing::CasperSlashing;
|
||||
pub use crate::crosslink_record::CrosslinkRecord;
|
||||
pub use crate::crystallized_state::CrystallizedState;
|
||||
pub use crate::deposit::Deposit;
|
||||
pub use crate::deposit_data::DepositData;
|
||||
pub use crate::deposit_input::DepositInput;
|
||||
|
Loading…
Reference in New Issue
Block a user