diff --git a/beacon-chain/rpc/core/validator.go b/beacon-chain/rpc/core/validator.go index 9924b870cb4b..f7eb00e2e1c5 100644 --- a/beacon-chain/rpc/core/validator.go +++ b/beacon-chain/rpc/core/validator.go @@ -330,6 +330,7 @@ func (s *Service) GetAttestationData( s.AttestationCache.RLock() res, err := s.AttestationCache.Get(ctx) if err != nil { + s.AttestationCache.RUnlock() return nil, &RpcError{Reason: Internal, Err: errors.Errorf("could not retrieve data from attestation cache: %v", err)} } if res != nil && res.Slot == req.Slot {