Skip to content

Commit

Permalink
Remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jun 28, 2022
1 parent a6a6aae commit a861777
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions beacon_node/beacon_chain/src/recompute_head.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,6 @@ use task_executor::{JoinHandle, ShutdownReason};
use types::*;

impl<T: BeaconChainTypes> BeaconChain<T> {
/*
pub fn spawn_recompute_head_at_current_slot(self: Arc<Self>, call_location: &'static str) {
self.task_executor.clone().spawn(
async move {
if let Err(e) = self.recompute_head_at_current_slot().await {
error!(
self.log,
"Fork choice failed";
"error" => ?e,
"location" => call_location
)
} else {
trace!(
self.log,
"Fork choice success";
"location" => call_location
)
}
},
"spawn_recompute_head",
)
}
*/

/// Execute the fork choice algorithm and enthrone the result as the canonical head.
pub async fn recompute_head_at_current_slot(self: &Arc<Self>) -> Result<(), Error> {
let current_slot = self.slot()?;
Expand Down

0 comments on commit a861777

Please sign in to comment.