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

moving cloner functions to beacon_block.go #14265

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Conversation

james-prysm
Copy link
Contributor

What type of PR is this?

Other

What does this PR do? Why is it needed?

removes cloner functions in favor of .Copy() functions. I've left the cloner tests as is as extra safe measures. this does not solve our TODOs around deep not equals

Which issues(s) does this PR fix?

Fixes #

Other notes for review

@james-prysm james-prysm requested a review from a team as a code owner July 25, 2024 19:04
@james-prysm james-prysm requested a review from rkapka July 25, 2024 19:07
@james-prysm james-prysm added Cleanup Code health! Ready For Review A pull request ready for code review labels Jul 25, 2024
Comment on lines +360 to +363
// CopyBlobKZGs copies the provided blob kzgs object.
func CopyBlobKZGs(b [][]byte) [][]byte {
return bytesutil.SafeCopy2dBytes(b)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This function does not achieve anything. You can call bytesutil.SafeCopy2dBytes directly

@james-prysm james-prysm added this pull request to the merge queue Jul 29, 2024
Merged via the queue into develop with commit 6f79767 Jul 29, 2024
17 checks passed
@james-prysm james-prysm deleted the clone-beacon-block branch July 29, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Code health! Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants