mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 14:58:31 +00:00
Merge remote-tracking branch 'origin/unstable' into gloas-walk-always
This commit is contained in:
@@ -380,6 +380,13 @@ impl<T: BeaconChainTypes> CanonicalHead<T> {
|
||||
Ok((head, execution_status))
|
||||
}
|
||||
|
||||
// TODO(gloas) just a stub for now, implement this once we have fork choice.
|
||||
/// Returns true if the payload for this block is canonical according to fork choice
|
||||
/// Returns an error if the block root doesn't exist in fork choice.
|
||||
pub fn block_has_canonical_payload(&self, _root: &Hash256) -> Result<bool, Error> {
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
/// Returns a clone of `self.cached_head`.
|
||||
///
|
||||
/// Takes a read-lock on `self.cached_head` for a short time (just long enough to clone it).
|
||||
|
||||
Reference in New Issue
Block a user