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 18741f5 commit cf4fb5bCopy full SHA for cf4fb5b
webgenie/base/neuron.py
@@ -21,6 +21,7 @@
21
import bittensor as bt
22
23
from abc import ABC, abstractmethod
24
+from bt_ddos_shield import ShieldMetagraph
25
26
# Sync calls set weights and also resyncs the metagraph.
27
from webgenie.constants import NEURON_EPOCH_LENGTH, SPEC_VERSION
@@ -90,7 +91,7 @@ def __init__(self, config=None):
90
91
else:
92
self.wallet = bt.wallet(config=self.config)
93
self.subtensor = bt.subtensor(config=self.config)
- self.metagraph = self.subtensor.metagraph(self.config.netuid)
94
+ self.metagraph = ShieldMetagraph(self.wallet, self.config.netuid, subtensor=self.subtensor)
95
96
bt.logging.info(f"Wallet: {self.wallet}")
97
bt.logging.info(f"Subtensor: {self.subtensor}")
0 commit comments