Add log for fork choice integrity in beacon chain

This commit is contained in:
Paul Hauner
2019-08-27 11:19:50 +10:00
parent 1bea1755c4
commit ed6c39e25a
4 changed files with 38 additions and 27 deletions

View File

@@ -46,4 +46,10 @@ pub trait LmdGhost<S: Store, E: EthSpec>: Send + Sync {
/// Returns the latest message for a given validator index.
fn latest_message(&self, validator_index: usize) -> Option<(Hash256, Slot)>;
/// Runs an integrity verification function on fork choice algorithm.
///
/// Returns `Ok(())` if the underlying fork choice has maintained it's integrity,
/// `Err(description)` otherwise.
fn verify_integrity(&self) -> Result<()>;
}