mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 14:28:37 +00:00
Checking if the an attestation contains a latest message
This commit is contained in:
@@ -45,5 +45,5 @@ pub trait LmdGhost<S: Store, E: EthSpec>: Send + Sync {
|
||||
) -> Result<()>;
|
||||
|
||||
/// Returns the latest message for a given validator index.
|
||||
fn latest_message(&mut self, validator_index: usize) -> Option<(Hash256, Slot)>;
|
||||
fn latest_message(&self, validator_index: usize) -> Option<(Hash256, Slot)>;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ where
|
||||
.map_err(|e| format!("update_finalized_root failed: {:?}", e))
|
||||
}
|
||||
|
||||
fn latest_message(&mut self, validator_index: usize) -> Option<(Hash256, Slot)> {
|
||||
fn latest_message(&self, validator_index: usize) -> Option<(Hash256, Slot)> {
|
||||
self.core
|
||||
.write()
|
||||
.latest_message(validator_index)
|
||||
|
||||
Reference in New Issue
Block a user