mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Defensive pull tips, doubly-linked-tree (#11175)
* Defensive pull tips, doubly-linked-tree * feature flag * gaz Co-authored-by: terencechain <terence@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ func SinceGenesis(genesis time.Time) types.Slot {
|
||||
return types.Slot(uint64(prysmTime.Since(genesis).Seconds()) / params.BeaconConfig().SecondsPerSlot)
|
||||
}
|
||||
|
||||
// EpochsSinceGenesis returns the number of slots since
|
||||
// EpochsSinceGenesis returns the number of epochs since
|
||||
// the provided genesis time.
|
||||
func EpochsSinceGenesis(genesis time.Time) types.Epoch {
|
||||
return types.Epoch(SinceGenesis(genesis) / params.BeaconConfig().SlotsPerEpoch)
|
||||
|
||||
Reference in New Issue
Block a user