dont sync metagraph on neuron init#1423
Conversation
ifrit98
left a comment
There was a problem hiding this comment.
Great catch!
Will port this over to openminers also.
p-ferreira
left a comment
There was a problem hiding this comment.
LGTM although I'm not sure if I understood the implication on the validator.
So we want to sync the metagraph with self.subtensor?
The current implementation on openvalidators syncs like
self.metagraph.sync(). I see in the metagraph code that lite is set to true by default, but the subtensor is initially empty and later filled with bt.subtensor.
Should we replicate this approach to the openvalidators as well?
I believe we should, as (soon-ish) |
|
See #1426 |
The config for the subtensor, including any chain endpoint, only gets passed to We also need that when syncing the metagraph, so we have to pass that in somehow, meaning we should sync using it and disable the auto-sync when it initializes the object (because it has no config param) |
This fixes errors that require the subtensor config to be passed on the CLI.