lighthouse-pulse/lighthouse/state/common/maps.rs
2018-09-25 12:20:13 +10:00

8 lines
222 B
Rust

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