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

refactor: Remove hard-coded shard count #502

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

morgsmccauley
Copy link
Collaborator

@morgsmccauley morgsmccauley commented Jan 16, 2024

Currently, the shard/chunk count is hard-coded to 4 so that we can fetch the block header and shards in parallel. This PR removes the hard-coded value by using the chunk count specified in the block header to fetch the relevant shards.

@morgsmccauley morgsmccauley requested a review from a team as a code owner January 16, 2024 00:57
@morgsmccauley morgsmccauley linked an issue Jan 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@darunrs darunrs left a comment

Choose a reason for hiding this comment

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

Nice idea to use block chunks to get shard count!

@morgsmccauley morgsmccauley merged commit c4f47bf into main Jan 16, 2024
3 checks passed
@morgsmccauley morgsmccauley deleted the 382-remove-hardcoded-shard-number-from-prototype branch January 16, 2024 19:25
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.

Remove hardcoded shard number from prototype
2 participants