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

Cleanup/Deduplicate blockdownloader code #8147

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

asdacap
Copy link
Contributor

@asdacap asdacap commented Jan 31, 2025

  • Loooong overdue code deduplication.
  • Deduplicate MergeBlockDownloader and BlockDownloader.
  • MergeBlockDownloader now take an instance of BlockDownloader for pre-merge because virtual method will change behaviour of the deduplicated code, but it need pre-merge to work. Any previously modified behaviour in BlockDownloader used for transition is moved to IPosTransitionHook.
  • Fix receipt transition fix not working pre-merge, because its only in MergeBlockDownloader.

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • Refactoring

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

  • Mainnet sync
  • Energyweb sync
  • Hive engine sim

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