diff --git a/beacon-chain/blockchain/process_block.go b/beacon-chain/blockchain/process_block.go index 089ff4399..d167a608d 100644 --- a/beacon-chain/blockchain/process_block.go +++ b/beacon-chain/blockchain/process_block.go @@ -346,7 +346,7 @@ func (s *Service) updateEpochBoundaryCaches(ctx context.Context, st state.Beacon // with a custom deadline, therefore using the background context instead. slotCtx, cancel := context.WithTimeout(context.Background(), slotDeadline) defer cancel() - if err := helpers.UpdateCommitteeCache(ctx, st, e+1); err != nil { + if err := helpers.UpdateCommitteeCache(slotCtx, st, e+1); err != nil { log.WithError(err).Warn("Could not update committee cache") } if err := helpers.UpdateProposerIndicesInCache(slotCtx, st, e+1); err != nil {