mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-03 04:44:28 +00:00
Add untested minimum viable block processing
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
use super::Hash256;
|
||||
use super::{
|
||||
AttestationRecord,
|
||||
SpecialRecord,
|
||||
};
|
||||
use super::{AttestationRecord, SpecialRecord};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct ActiveState {
|
||||
@@ -11,3 +8,10 @@ pub struct ActiveState {
|
||||
pub recent_block_hashes: Vec<Hash256>,
|
||||
pub randao_mix: Hash256,
|
||||
}
|
||||
|
||||
impl ActiveState {
|
||||
// TODO: implement this.
|
||||
pub fn canonical_root(&self) -> Hash256 {
|
||||
Hash256::zero()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
use super::validator_record::ValidatorRecord;
|
||||
use super::crosslink_record::CrosslinkRecord;
|
||||
use super::shard_and_committee::ShardAndCommittee;
|
||||
use super::validator_record::ValidatorRecord;
|
||||
use super::Hash256;
|
||||
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct CrystallizedState {
|
||||
pub validator_set_change_slot: u64,
|
||||
@@ -20,3 +19,10 @@ pub struct CrystallizedState {
|
||||
pub post_fork_version: u32,
|
||||
pub fork_slot_number: u32,
|
||||
}
|
||||
|
||||
impl CrystallizedState {
|
||||
// TODO: implement this.
|
||||
pub fn canonical_root(&self) -> Hash256 {
|
||||
Hash256::zero()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user