mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
types updated against spec and process_deposit routine partially implemented
This commit is contained in:
@@ -9,7 +9,11 @@ use super::Hash256;
|
||||
|
||||
#[derive(Debug, PartialEq, Default)]
|
||||
pub struct BeaconState {
|
||||
pub slot: u64,
|
||||
pub genesis_time: u64,
|
||||
pub fork_data: ForkData,
|
||||
pub validator_registry: Vec<ValidatorRecord>,
|
||||
pub validator_balances: Vec<u64>,
|
||||
pub validator_registry_latest_change_slot: u64,
|
||||
pub validator_registry_exit_count: u64,
|
||||
pub validator_registry_delta_chain_tip: Hash256,
|
||||
@@ -20,15 +24,13 @@ pub struct BeaconState {
|
||||
pub persistent_committee_reassignments: Vec<ShardReassignmentRecord>,
|
||||
pub previous_justified_slot: u64,
|
||||
pub justified_slot: u64,
|
||||
pub justified_slot_bitfield: u64,
|
||||
pub justification_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_block_roots: Vec<Hash256>,
|
||||
pub latest_penalized_exit_balances: Vec<u64>,
|
||||
pub latest_attestations: Vec<PendingAttestationRecord>,
|
||||
pub batched_block_roots: Vec<Hash256>,
|
||||
pub processed_pow_receipt_root: Hash256,
|
||||
pub candidate_pow_receipt_roots: Vec<CandidatePoWReceiptRootRecord>,
|
||||
pub genesis_time: u64,
|
||||
pub fork_data: ForkData,
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ pub struct ValidatorRecord {
|
||||
pub withdrawal_credentials: Hash256,
|
||||
pub randao_commitment: Hash256,
|
||||
pub randao_layers: u64,
|
||||
pub balance: u64,
|
||||
pub status: ValidatorStatus,
|
||||
pub latest_status_change_slot: u64,
|
||||
pub exit_count: u64
|
||||
@@ -50,7 +49,6 @@ impl ValidatorRecord {
|
||||
withdrawal_credentials: Hash256::zero(),
|
||||
randao_commitment: Hash256::zero(),
|
||||
randao_layers: 0,
|
||||
balance: 0,
|
||||
status: From::from(0),
|
||||
latest_status_change_slot: 0,
|
||||
exit_count: 0
|
||||
|
||||
Reference in New Issue
Block a user