We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 442b405 commit f81abf4Copy full SHA for f81abf4
neurons/validators/validator.py
@@ -87,13 +87,11 @@ def __init__(self, config=None):
87
88
def resync_metagraph(self):
89
# Copies state of metagraph before syncing.
90
- previous_metagraph = copy.deepcopy(self.metagraph)
91
-
+ previous_axons = copy.deepcopy(self.metagraph.axons)
92
# Sync the metagraph.
93
self.metagraph.sync(subtensor=self.subtensor)
94
95
# Check if the metagraph axon info has changed.
96
- if previous_metagraph.axons == self.metagraph.axons:
+ if previous_axons == self.metagraph.axons:
97
return
98
99
bt.logging.info(
0 commit comments