Skip to content

chore: Address TODO to use ROBlock #15193

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

gap-editor
Copy link

What type of PR is this?

Other

What does this PR do? Why is it needed?

This PR refactors the backfill.verifier.verify function to accept []blocks.ROBlock directly, addressing an existing TODO comment. This simplifies the verification logic by removing the internal conversion from interfaces.ReadOnlySignedBeaconBlock to blocks.ROBlock and leverages the cached root within ROBlock.

Which issues(s) does this PR fix?

Fixes # (Addresses inline TODO in beacon-chain/sync/backfill/verify.go)

Other notes for review

This change primarily involves updating the function signature and adjusting the call sites in worker.go and verify_test.go. No functional changes are intended. A user-facing changelog entry is likely not required as this is internal refactoring.

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named changelog fragment file. (Likely not needed for this change)
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

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