Remove comments from fork choice.

This commit is contained in:
Age Manning 2019-02-15 13:32:37 +11:00
parent 2cab2952a8
commit 5031ee5505
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93
2 changed files with 1 additions and 6 deletions

View File

@ -44,14 +44,12 @@ extern crate types;
pub mod longest_chain; pub mod longest_chain;
pub mod optimised_lmd_ghost; pub mod optimised_lmd_ghost;
//pub mod protolambda_lmd_ghost;
pub mod slow_lmd_ghost; pub mod slow_lmd_ghost;
use db::stores::BeaconBlockAtSlotError; use db::stores::BeaconBlockAtSlotError;
use db::DBError; use db::DBError;
use types::{BeaconBlock, Hash256}; use types::{BeaconBlock, Hash256};
// export the main structs
pub use longest_chain::LongestChain; pub use longest_chain::LongestChain;
pub use optimised_lmd_ghost::OptimisedLMDGhost; pub use optimised_lmd_ghost::OptimisedLMDGhost;
@ -118,7 +116,4 @@ pub enum ForkChoiceAlgorithms {
SlowLMDGhost, SlowLMDGhost,
/// An optimised version of LMD-GHOST by Vitalik. /// An optimised version of LMD-GHOST by Vitalik.
OptimisedLMDGhost, OptimisedLMDGhost,
// Protolambda currently not implemented
// /// An optimised version of LMD-GHOST by Protolambda.
//ProtoLMDGhost,
} }

View File

@ -52,7 +52,7 @@ impl<T: ClientDB + Sized> ForkChoice for LongestChain<T> {
let block = self let block = self
.block_store .block_store
.get_deserialized(&block_hash)? .get_deserialized(&block_hash)?
.ok_or(ForkChoiceError::MissingBeaconBlock(*block_hash))?; .ok_or_else(|| ForkChoiceError::MissingBeaconBlock(*block_hash))?;
head_blocks.push((index, block)); head_blocks.push((index, block));
} }