lighthouse-pulse/lighthouse/state/common/maps.rs

8 lines
222 B
Rust
Raw Normal View History

use std::collections::HashMap;
/// Maps a (slot, shard_id) to attestation_indices.
pub type AttesterMap = HashMap<(u64, u16), Vec<usize>>;
/// Maps a slot to a block proposer.
pub type ProposerMap = HashMap<u64, usize>;