Remove comments from fork choice.
This commit is contained in:
parent
2cab2952a8
commit
5031ee5505
@ -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,
|
|
||||||
}
|
}
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user