From 75dea214ac1f9aacf2621541892542b43e82c861 Mon Sep 17 00:00:00 2001 From: Potuz Date: Sat, 13 Dec 2025 14:36:06 -0300 Subject: [PATCH] Do not error when indices have been computed (#16142) If there is a context deadline updating the committee cache, but the indices have been computed correctly, do not error out but rather return the indices and log the error. --- beacon-chain/core/helpers/validators.go | 2 +- changelog/potuz_return_indices_updateerr.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/potuz_return_indices_updateerr.md diff --git a/beacon-chain/core/helpers/validators.go b/beacon-chain/core/helpers/validators.go index 171b484bce..a817daba8e 100644 --- a/beacon-chain/core/helpers/validators.go +++ b/beacon-chain/core/helpers/validators.go @@ -152,7 +152,7 @@ func ActiveValidatorIndices(ctx context.Context, s state.ReadOnlyBeaconState, ep } if err := UpdateCommitteeCache(ctx, s, epoch); err != nil { - return nil, errors.Wrap(err, "could not update committee cache") + log.WithError(err).Error("Could not update committee cache") } return indices, nil diff --git a/changelog/potuz_return_indices_updateerr.md b/changelog/potuz_return_indices_updateerr.md new file mode 100644 index 0000000000..6c0fa87271 --- /dev/null +++ b/changelog/potuz_return_indices_updateerr.md @@ -0,0 +1,3 @@ +### Fixed + +- Do not error when committee has been computed correctly but updating the cache failed.