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: miner versioning #228

Closed
wants to merge 4 commits into from
Closed

Conversation

grantdfoster
Copy link
Contributor

@grantdfoster grantdfoster commented Aug 28, 2024

Description

Problem Statement
The get_miner_versions method in the BaseValidatorNeuron class was previously designed to call all 256 miners at once. This approach could lead to significant bandwidth issues, causing network congestion and potential timeouts due to the high volume of simultaneous requests.

Solution
To address this problem, we implemented a batching mechanism within the get_miner_versions method. Instead of querying all miners at once, the method now divides the miners into smaller batches and processes each batch sequentially. This reduces the load on the network and helps prevent bandwidth-related issues.

Changes Made
Batching Requests: The miners are divided into smaller batches based on a configurable sample_size.
Sequential Processing: Each batch is processed one after the other, ensuring that the network is not overwhelmed by too many simultaneous requests.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@grantdfoster grantdfoster linked an issue Aug 28, 2024 that may be closed by this pull request
Copy link

PR description is too short and seems to not fulfill PR template, please fill in

Copy link

PR description is too short and seems to not fulfill PR template, please fill in

@grantdfoster grantdfoster marked this pull request as ready for review August 28, 2024 20:11
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.

feat: PingMiner Timeout and Sample Size
2 participants