From 9ec4f727c662a4ef36e0a256b6b42b1f45eedf5c Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Wed, 20 Jan 2021 18:00:01 -0800 Subject: [PATCH] Remove unnecessary state copy (#8303) --- beacon-chain/blockchain/process_attestation_helpers.go | 1 - 1 file changed, 1 deletion(-) diff --git a/beacon-chain/blockchain/process_attestation_helpers.go b/beacon-chain/blockchain/process_attestation_helpers.go index dcc1864c8..c2399011d 100644 --- a/beacon-chain/blockchain/process_attestation_helpers.go +++ b/beacon-chain/blockchain/process_attestation_helpers.go @@ -42,7 +42,6 @@ func (s *Service) getAttPreState(ctx context.Context, c *ethpb.Checkpoint) (*sta return nil, err } if epochStartSlot > baseState.Slot() { - baseState = baseState.Copy() baseState, err = state.ProcessSlots(ctx, baseState, epochStartSlot) if err != nil { return nil, errors.Wrapf(err, "could not process slots up to epoch %d", c.Epoch)