Expanded fork choice api to provide latest validator message.

This commit is contained in:
Grant Wuerker
2019-07-21 22:53:39 +02:00
parent bef7ca6bfb
commit 3b8a584c55
2 changed files with 16 additions and 0 deletions

View File

@@ -43,4 +43,7 @@ pub trait LmdGhost<S: Store, E: EthSpec>: Send + Sync {
finalized_block: &BeaconBlock,
finalized_block_root: Hash256,
) -> Result<()>;
/// Returns the latest message for a given validator index.
fn latest_message(&mut self, validator_index: usize) -> Option<(Hash256, Slot)>;
}