Merge remote-tracking branch 'origin/unstable' into gloas-walk-always

This commit is contained in:
Michael Sproul
2026-03-26 10:07:46 +11:00
26 changed files with 1781 additions and 17 deletions

View File

@@ -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).