Remove duplicate slot_clock method (#2842)

This commit is contained in:
Paul Hauner
2021-12-02 09:01:36 +11:00
parent 94385fe17b
commit 144978f8f8
2 changed files with 2 additions and 11 deletions

View File

@@ -168,7 +168,8 @@ pub fn validate_execution_payload_for_gossip<T: BeaconChainTypes>(
if is_merge_complete || execution_payload != &<_>::default() {
let expected_timestamp = chain
.slot_clock
.compute_timestamp_at_slot(block.slot())
.start_of(block.slot())
.map(|d| d.as_secs())
.ok_or(BlockError::BeaconChainError(
BeaconChainError::UnableToComputeTimeAtSlot,
))?;