mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Remove duplicate slot_clock method (#2842)
This commit is contained in:
@@ -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,
|
||||
))?;
|
||||
|
||||
Reference in New Issue
Block a user