mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Change some ShardAndCommittee -> ShardCommittee
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use super::crosslink_record::CrosslinkRecord;
|
||||
use super::shard_and_committee::ShardAndCommittee;
|
||||
use super::shard_committee::ShardCommittee;
|
||||
use super::validator_record::ValidatorRecord;
|
||||
use super::Hash256;
|
||||
|
||||
@@ -12,7 +12,7 @@ pub struct CrystallizedState {
|
||||
pub last_finalized_slot: u64,
|
||||
pub last_justified_slot: u64,
|
||||
pub justified_streak: u64,
|
||||
pub shard_and_committee_for_slots: Vec<Vec<ShardAndCommittee>>,
|
||||
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,
|
||||
|
||||
@@ -21,7 +21,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_shard_and_committee_zero() {
|
||||
let s = ShardAndCommittee::zero();
|
||||
let s = ShardCommittee::zero();
|
||||
assert_eq!(s.shard, 0);
|
||||
assert_eq!(s.committee.len(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user