Skip to content

Commit

Permalink
fix: imports and add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed Apr 25, 2024
1 parent 557bdb0 commit b0109a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions neurons/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions template/utils/uids.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b0109a9

Please sign in to comment.