Skip to content

Commit f81abf4

Browse files
committed
chore: update resync func
1 parent 442b405 commit f81abf4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

neurons/validators/validator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,11 @@ def __init__(self, config=None):
8787

8888
def resync_metagraph(self):
8989
# Copies state of metagraph before syncing.
90-
previous_metagraph = copy.deepcopy(self.metagraph)
91-
90+
previous_axons = copy.deepcopy(self.metagraph.axons)
9291
# Sync the metagraph.
9392
self.metagraph.sync(subtensor=self.subtensor)
94-
9593
# Check if the metagraph axon info has changed.
96-
if previous_metagraph.axons == self.metagraph.axons:
94+
if previous_axons == self.metagraph.axons:
9795
return
9896

9997
bt.logging.info(

0 commit comments

Comments
 (0)