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

Fix block lock copying #275

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Fix block lock copying #275

merged 1 commit into from
Jul 23, 2024

Conversation

Hyodar
Copy link
Contributor

@Hyodar Hyodar commented Jul 5, 2024

Current Behavior

In some cases, geth's types.Block are copied - mostly because of copying our BlockData instances. This is not being problematic in any sense since these locks aren't being used, but it's a small fix anyway.

New Behavior

BlockData now includes a types.Block as a pointer, which is even more ideal considering how much data that struct holds. Thus, no copies even when copying BlockData, which should still be okay.

Breaking Changes

Not a breaking change.

@Hyodar Hyodar self-assigned this Jul 5, 2024
@Hyodar Hyodar merged commit 1f8f287 into main Jul 23, 2024
5 checks passed
This pull request was closed.
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.

1 participant