Skip to content

Reorganize duties functions - #16457

Merged
james-prysm merged 5 commits into
developfrom
reorganize-duties-functions
Mar 4, 2026
Merged

Reorganize duties functions#16457
james-prysm merged 5 commits into
developfrom
reorganize-duties-functions

Conversation

@james-prysm

@james-prysm james-prysm commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

Other

What does this PR do? Why is it needed?

just moving some functions around to reduce duties split pr. part of #16421

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named changelog fragment file.
  • I have added a description with sufficient context for reviewers to understand this PR.
  • I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable).

@james-prysm james-prysm added the cleanup PR improving code health label Mar 2, 2026
satushh
satushh previously approved these changes Mar 4, 2026
// UpdateDuties checks the slot number to determine if the validator's
// list of upcoming assignments needs to be updated. For example, at the
// beginning of a new epoch.
func (v *validator) UpdateDuties(ctx context.Context) error {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the unit tests for UpdateDuties to duties_test.go

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated thanks for the feedback

@james-prysm
james-prysm added this pull request to the merge queue Mar 4, 2026
Merged via the queue into develop with commit 393eb1e Mar 4, 2026
19 checks passed
@james-prysm
james-prysm deleted the reorganize-duties-functions branch March 4, 2026 21:21
syjn99 pushed a commit to syjn99/prysm that referenced this pull request Mar 13, 2026
**What type of PR is this?**

Other

**What does this PR do? Why is it needed?**

just moving some functions around to reduce duties split pr. part of
OffchainLabs#16421

**Which issues(s) does this PR fix?**

Fixes #

**Other notes for review**

**Acknowledgements**

- [x] I have read
[CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md).
- [x] I have included a uniquely named [changelog fragment
file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd).
- [x] I have added a description with sufficient context for reviewers
to understand this PR.
- [x] I have tested that my changes work as expected and I added a
testing plan to the PR description (if applicable).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup PR improving code health

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants