Add basic BeaconChain struct

This commit is contained in:
Paul Hauner
2018-12-30 13:03:20 +11:00
parent 31c78b7718
commit 1081529cc7
10 changed files with 82 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ where
*/
for (index, block_hash) in head_block_hashes.iter().enumerate() {
let ssz = block_store
.get_serialized_block(&block_hash.to_vec()[..])?
.get(&block_hash.to_vec()[..])?
.ok_or(ForkChoiceError::MissingBlock)?;
let (block, _) = BeaconBlock::ssz_decode(&ssz, 0)?;
head_blocks.push((index, block));