Replace INTERVALS_PER_SLOT with explicit slot component times (#7944)

https://github.com/ethereum/consensus-specs/pull/4476


  


Co-Authored-By: Barnabas Busa <barnabas.busa@ethereum.org>

Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com>

Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>

Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>

Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
Eitan Seri-Levi
2026-02-01 21:58:42 -08:00
committed by GitHub
parent cd8049a696
commit 3ecf964385
56 changed files with 579 additions and 184 deletions

View File

@@ -860,7 +860,8 @@ impl<E: EthSpec> MockBuilder<E> {
.data
.genesis_time
};
let timestamp = (slots_since_genesis * self.spec.seconds_per_slot) + genesis_time;
let timestamp =
(slots_since_genesis * self.spec.get_slot_duration().as_secs()) + genesis_time;
let head_state: BeaconState<E> = self
.beacon_client