mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
do not run assign every slot (#2412)
This commit is contained in:
parent
80d47468e4
commit
63378793b4
@ -140,9 +140,7 @@ func (v *validator) SlotDeadline(slot uint64) time.Time {
|
||||
// list of upcoming assignments needs to be updated. For example, at the
|
||||
// beginning of a new epoch.
|
||||
func (v *validator) UpdateAssignments(ctx context.Context, slot uint64) error {
|
||||
// Testing run time for fetching every slot. This is not meant for production!
|
||||
// https://github.com/prysmaticlabs/prysm/issues/2167
|
||||
if slot%params.BeaconConfig().SlotsPerEpoch != 0 && v.assignments != nil && false {
|
||||
if slot%params.BeaconConfig().SlotsPerEpoch != 0 && v.assignments != nil {
|
||||
// Do nothing if not epoch start AND assignments already exist.
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user