diff --git a/neurons/miner.py b/neurons/miner.py index 574633e7..9ecdebf9 100644 --- a/neurons/miner.py +++ b/neurons/miner.py @@ -53,6 +53,7 @@ async def forward_result(self, synapse: RankingResult) -> RankingResult: return synapse async def forward_ranking_request(self, synapse: RankingRequest) -> RankingRequest: + # TODO call Dojo APIs try: print(f"Miner received request, type={str(synapse.__class__.__name__)}") self.hotkey_to_request[synapse.dendrite.hotkey] = synapse diff --git a/template/utils/uids.py b/template/utils/uids.py index d2ec26cb..96750eb2 100644 --- a/template/utils/uids.py +++ b/template/utils/uids.py @@ -6,6 +6,8 @@ import bittensor as bt import bisect +from commons.utils import keccak256_hash + def get_all_serving_uids(metagraph: bt.metagraph): uids = [uid for uid in range(metagraph.n.item()) if metagraph.axons[uid].is_serving]