Skip to content

Commit cf4fb5b

Browse files
committed
feat: implemnt client side ddos
1 parent 18741f5 commit cf4fb5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webgenie/base/neuron.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import bittensor as bt
2222

2323
from abc import ABC, abstractmethod
24+
from bt_ddos_shield import ShieldMetagraph
2425

2526
# Sync calls set weights and also resyncs the metagraph.
2627
from webgenie.constants import NEURON_EPOCH_LENGTH, SPEC_VERSION
@@ -90,7 +91,7 @@ def __init__(self, config=None):
9091
else:
9192
self.wallet = bt.wallet(config=self.config)
9293
self.subtensor = bt.subtensor(config=self.config)
93-
self.metagraph = self.subtensor.metagraph(self.config.netuid)
94+
self.metagraph = ShieldMetagraph(self.wallet, self.config.netuid, subtensor=self.subtensor)
9495

9596
bt.logging.info(f"Wallet: {self.wallet}")
9697
bt.logging.info(f"Subtensor: {self.subtensor}")

0 commit comments

Comments
 (0)