This commit is contained in:
Eitan Seri-Levi
2025-02-10 00:37:04 +02:00
parent 30136ad571
commit f790c22123
4 changed files with 14 additions and 8 deletions

View File

@@ -12,9 +12,7 @@ pub fn inclusion_list_duties<T: BeaconChainTypes>(
request_indices: &[u64],
chain: &BeaconChain<T>,
) -> Result<ApiDuties, warp::reject::Rejection> {
let current_epoch = chain
.epoch()
.map_err(warp_utils::reject::unhandled_error)?;
let current_epoch = chain.epoch().map_err(warp_utils::reject::unhandled_error)?;
// Determine what the current epoch would be if we fast-forward our system clock by
// `MAXIMUM_GOSSIP_CLOCK_DISPARITY`.