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

♻️ Simplified the internal behavior of GetDemandBlockHashes() #3931

Merged
merged 7 commits into from
Aug 27, 2024

Conversation

greymistcube
Copy link
Contributor

@greymistcube greymistcube commented Aug 23, 2024

  • Removed internal "stitching" of BlockHashes over multiple attempts.
  • Removed chunkSize parameter. This was never clearly defined and was being used improperly in the first place.
  • When attempting to get BlockHashes from a Peer, the Peer selection is done randomly (instead of trying to attempt from the "highest" Peer first).
  • As a result, the overall behavior of preloading has changed.

@greymistcube greymistcube self-assigned this Aug 23, 2024
@greymistcube greymistcube changed the title Refactor/remove chunksize ♻️ Simplified the internal behavior of GetDemandBlockHashes() Aug 23, 2024
@greymistcube greymistcube marked this pull request as ready for review August 23, 2024 02:49
@greymistcube greymistcube force-pushed the refactor/remove-chunksize branch from cba76a1 to 57a5777 Compare August 23, 2024 11:35
Copy link
Member

@riemannulus riemannulus left a comment

Choose a reason for hiding this comment

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

LGTM

@greymistcube greymistcube merged commit 7001504 into planetarium:main Aug 27, 2024
21 of 22 checks passed
@greymistcube greymistcube deleted the refactor/remove-chunksize branch September 3, 2024 06: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