From b0109a97bea37b986a4a0b1f7638100bea7618d7 Mon Sep 17 00:00:00 2001 From: jarvis8x7b <157810922+jarvis8x7b@users.noreply.github.com> Date: Thu, 25 Apr 2024 23:32:35 +0800 Subject: [PATCH] fix: imports and add todo --- neurons/miner.py | 1 + template/utils/uids.py | 2 ++ 2 files changed, 3 insertions(+) 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]