mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Integrate proto_array into lighthouse
This commit is contained in:
@@ -201,6 +201,10 @@ impl ProtoArrayForkChoice {
|
||||
self.proto_array.read().nodes.len()
|
||||
}
|
||||
|
||||
pub fn contains_block(&self, block_root: &Hash256) -> bool {
|
||||
self.proto_array.read().indices.contains_key(block_root)
|
||||
}
|
||||
|
||||
pub fn latest_message(&self, validator_index: usize) -> Option<(Hash256, Epoch)> {
|
||||
let votes = self.votes.read();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user