mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
add delay before broadcasting lc objects (#15776)
* add delay before broadcasting lc objects * address commments * address commments * reduce test runtime
This commit is contained in:
@@ -307,3 +307,9 @@ func SecondsUntilNextEpochStart(genesis time.Time) (uint64, error) {
|
||||
}).Debugf("%d seconds until next epoch", waitTime)
|
||||
return waitTime, nil
|
||||
}
|
||||
|
||||
// ComponentDuration calculates the duration of a slot component in milliseconds.
|
||||
func ComponentDuration(component primitives.BP) time.Duration {
|
||||
ms := (component * params.SlotBP()) / params.BasisPoints
|
||||
return time.Duration(ms) * time.Millisecond
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user