Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nil checks on ToConsensus() functions #14867

Merged
merged 12 commits into from
Feb 5, 2025
Merged

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented Feb 3, 2025

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
ToConsensus functions convert json representations to the consensus object, this conversion should validate the json for lengths and should try to check for nils or other unsafe data.

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

@james-prysm james-prysm requested a review from a team as a code owner February 3, 2025 20:21
@james-prysm james-prysm changed the title adding more safety checks and associated tests nil checks on ToConsensus() functions Feb 3, 2025
rkapka
rkapka previously approved these changes Feb 5, 2025
Copy link
Contributor

@rkapka rkapka left a comment

Choose a reason for hiding this comment

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

fixed a few typos

@james-prysm james-prysm enabled auto-merge February 5, 2025 14:29
@james-prysm james-prysm added this pull request to the merge queue Feb 5, 2025
Merged via the queue into develop with commit 3dc0081 Feb 5, 2025
17 checks passed
@james-prysm james-prysm deleted the nil-check-to-consensus branch February 5, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants