Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ where
Box::pin(async move {
let mut accepted_check: bool = false;

let mut latest_block = env
let latest_block = env
.current_block_info()
.ok_or_else(|| eyre::eyre!("No latest block information available"))?;

Expand Down Expand Up @@ -603,10 +603,6 @@ where
rpc_latest_header.inner.timestamp;
env.active_node_state_mut()?.latest_fork_choice_state.head_block_hash =
rpc_latest_header.hash;

// update local copy for any further usage in this scope
latest_block.hash = rpc_latest_header.hash;
latest_block.number = rpc_latest_header.inner.number;
}
}

Expand Down
Loading