Add initial works on extending the chain

This commit is contained in:
Paul Hauner
2018-10-25 10:14:43 +02:00
parent b2495cbcff
commit 7f21fd325e
4 changed files with 141 additions and 71 deletions

View File

@@ -51,13 +51,6 @@ impl<T: ClientDB> BeaconBlockStore<T> {
self.db.exists(DB_COLUMN, hash)
}
pub fn block_exists_in_canonical_chain(&self, hash: &[u8])
-> Result<bool, DBError>
{
// TODO: implement logic for canonical chain
self.db.exists(DB_COLUMN, hash)
}
/// Retrieve the block at a slot given a "head_hash" and a slot.
///
/// A "head_hash" must be a block hash with a slot number greater than or equal to the desired