Remove BlockRootTree

This commit is contained in:
Paul Hauner
2020-01-21 14:26:04 +11:00
parent dcea0b5084
commit c3969e2ce5
7 changed files with 13 additions and 398 deletions

View File

@@ -119,6 +119,11 @@ impl<T: BeaconChainTypes> ForkChoice<T> {
result
}
/// Returns true if the given block is known to fork choice.
pub fn contains_block(&self, block_root: &Hash256) -> bool {
self.backend.contains_block(block_root)
}
/// Process all attestations in the given `block`.
///
/// Assumes the block (and therefore its attestations) are valid. It is a logic error to