From 1853d836b7e4b5fdb80e22670d5d013a3089d01d Mon Sep 17 00:00:00 2001 From: Odinson Date: Thu, 15 May 2025 13:01:31 +0530 Subject: [PATCH] Added E::slots_per_epoch() to deneb time calculation (#7458) Which issue # does this PR address? Closes #7457 Added `E::slots_per_epoch()` and now it ensures conversion from epochs to slots while calculating deneb time --- beacon_node/client/src/builder.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beacon_node/client/src/builder.rs b/beacon_node/client/src/builder.rs index 3cb7b33aae..43506c82de 100644 --- a/beacon_node/client/src/builder.rs +++ b/beacon_node/client/src/builder.rs @@ -310,8 +310,10 @@ where .map_err(|e| format!("Unable to read system time: {e:}"))? .as_secs(); let genesis_time = genesis_state.genesis_time(); - let deneb_time = - genesis_time + (deneb_fork_epoch.as_u64() * spec.seconds_per_slot); + let deneb_time = genesis_time + + (deneb_fork_epoch.as_u64() + * E::slots_per_epoch() + * spec.seconds_per_slot); // Shrink the blob availability window so users don't start // a sync right before blobs start to disappear from the P2P