Skip to content

Conversation

@JorritvanGils
Copy link
Contributor

@JorritvanGils JorritvanGils commented Dec 10, 2025

Validator __init__ method, has hardcoded 256 uids to get the gradients from.
for i in range(self.256):
Because testnet has only 40 uids (0-39) registered, this loop fails on trying to get gradients from the 40th uid and onwards.

This pull request uses self.metagraph.n and broadcasts it to all ranks to dynamically retrieve the correct up to date values. Atm these are:

  • mainnet = 256
  • testnet = 40

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