From 140df1a6896d6e81e9cbb5416aeba7095a648e06 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 5 Dec 2018 09:45:03 +1100 Subject: [PATCH] Make all BeaconState fields public (doh!) --- beacon_chain/types/src/beacon_state.rs | 44 +++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/beacon_chain/types/src/beacon_state.rs b/beacon_chain/types/src/beacon_state.rs index 1ab3a58de..2f5581d57 100644 --- a/beacon_chain/types/src/beacon_state.rs +++ b/beacon_chain/types/src/beacon_state.rs @@ -9,26 +9,26 @@ use super::Hash256; #[derive(Debug, PartialEq)] pub struct BeaconState { - validator_registry: Vec, - 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>, - persistent_committees: Vec>, - persistent_committee_reassignments: Vec, - previous_justified_slot: u64, - justified_slot: u64, - justified_slot_bitfield: u64, - finalized_slot: u64, - latest_crosslinks: Vec, - latest_state_recalculation_slot: u64, - latest_block_hashes: Vec, - latest_penalized_exit_balances: Vec, - latest_attestations: Vec, - processed_pow_receipt_root: Hash256, - candidate_pow_receipt_roots: Vec, - genesis_time: u64, - fork_data: ForkData, + pub validator_registry: Vec, + 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>, + pub persistent_committees: Vec>, + pub persistent_committee_reassignments: Vec, + pub previous_justified_slot: u64, + pub justified_slot: u64, + pub justified_slot_bitfield: u64, + pub finalized_slot: u64, + pub latest_crosslinks: Vec, + pub latest_state_recalculation_slot: u64, + pub latest_block_hashes: Vec, + pub latest_penalized_exit_balances: Vec, + pub latest_attestations: Vec, + pub processed_pow_receipt_root: Hash256, + pub candidate_pow_receipt_roots: Vec, + pub genesis_time: u64, + pub fork_data: ForkData, }