mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Remove unnecessary state copy (#8303)
This commit is contained in:
parent
ffcadcf184
commit
9ec4f727c6
@ -42,7 +42,6 @@ func (s *Service) getAttPreState(ctx context.Context, c *ethpb.Checkpoint) (*sta
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if epochStartSlot > baseState.Slot() {
|
if epochStartSlot > baseState.Slot() {
|
||||||
baseState = baseState.Copy()
|
|
||||||
baseState, err = state.ProcessSlots(ctx, baseState, epochStartSlot)
|
baseState, err = state.ProcessSlots(ctx, baseState, epochStartSlot)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "could not process slots up to epoch %d", c.Epoch)
|
return nil, errors.Wrapf(err, "could not process slots up to epoch %d", c.Epoch)
|
||||||
|
Loading…
Reference in New Issue
Block a user