Merge pull request #89 from sigp/beacon-state-pub-fields
Make all BeaconState fields public
This commit is contained in:
commit
4f3f8d6e79
@ -9,26 +9,26 @@ use super::Hash256;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct BeaconState {
|
||||
validator_registry: Vec<ValidatorRecord>,
|
||||
validator_registry_latest_change_slot: u64,
|
||||
validator_registry_exit_count: u64,
|
||||
validator_registry_delta_chain_tip: Hash256,
|
||||
randao_mix: Hash256,
|
||||
next_seed: Hash256,
|
||||
shard_and_committee_for_slots: Vec<Vec<ShardAndCommittee>>,
|
||||
persistent_committees: Vec<Vec<u32>>,
|
||||
persistent_committee_reassignments: Vec<ShardReassignmentRecord>,
|
||||
previous_justified_slot: u64,
|
||||
justified_slot: u64,
|
||||
justified_slot_bitfield: u64,
|
||||
finalized_slot: u64,
|
||||
latest_crosslinks: Vec<CrosslinkRecord>,
|
||||
latest_state_recalculation_slot: u64,
|
||||
latest_block_hashes: Vec<Hash256>,
|
||||
latest_penalized_exit_balances: Vec<u64>,
|
||||
latest_attestations: Vec<PendingAttestationRecord>,
|
||||
processed_pow_receipt_root: Hash256,
|
||||
candidate_pow_receipt_roots: Vec<CandidatePoWReceiptRootRecord>,
|
||||
genesis_time: u64,
|
||||
fork_data: ForkData,
|
||||
pub validator_registry: Vec<ValidatorRecord>,
|
||||
pub validator_registry_latest_change_slot: u64,
|
||||
pub validator_registry_exit_count: u64,
|
||||
pub validator_registry_delta_chain_tip: Hash256,
|
||||
pub randao_mix: Hash256,
|
||||
pub next_seed: Hash256,
|
||||
pub shard_and_committee_for_slots: Vec<Vec<ShardAndCommittee>>,
|
||||
pub persistent_committees: Vec<Vec<u32>>,
|
||||
pub persistent_committee_reassignments: Vec<ShardReassignmentRecord>,
|
||||
pub previous_justified_slot: u64,
|
||||
pub justified_slot: u64,
|
||||
pub justified_slot_bitfield: u64,
|
||||
pub finalized_slot: u64,
|
||||
pub latest_crosslinks: Vec<CrosslinkRecord>,
|
||||
pub latest_state_recalculation_slot: u64,
|
||||
pub latest_block_hashes: Vec<Hash256>,
|
||||
pub latest_penalized_exit_balances: Vec<u64>,
|
||||
pub latest_attestations: Vec<PendingAttestationRecord>,
|
||||
pub processed_pow_receipt_root: Hash256,
|
||||
pub candidate_pow_receipt_roots: Vec<CandidatePoWReceiptRootRecord>,
|
||||
pub genesis_time: u64,
|
||||
pub fork_data: ForkData,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user