mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Deneb review suggestions (#4678)
* Increase resolution for single lookup delay * Remove code duplication * Remove trusted setup code duplication
This commit is contained in:
@@ -835,9 +835,9 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
let delay_threshold_unmet = self
|
||||
.chain
|
||||
.slot_clock
|
||||
.seconds_from_current_slot_start()
|
||||
.map_or(false, |secs_into_slot| {
|
||||
secs_into_slot < self.chain.slot_clock.single_lookup_delay()
|
||||
.millis_from_current_slot_start()
|
||||
.map_or(false, |millis_into_slot| {
|
||||
millis_into_slot < self.chain.slot_clock.single_lookup_delay()
|
||||
});
|
||||
msg_for_current_slot && delay_threshold_unmet
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user