Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bittensor/core/extrinsics/asyncex/serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async def do_serve_axon(
wallet=wallet,
wait_for_inclusion=wait_for_inclusion,
wait_for_finalization=wait_for_finalization,
sign_with="hotkey",
period=period,
)
return success, message
Expand Down Expand Up @@ -140,7 +141,7 @@ async def serve_extrinsic(
f"Serving axon with: [blue]AxonInfo({wallet.hotkey.ss58_address}, {ip}:{port})[/blue] -> "
f"[green]{subtensor.network}:{netuid}[/green]"
)
success, message = do_serve_axon(
success, message = await do_serve_axon(
subtensor=subtensor,
wallet=wallet,
call_params=params,
Expand Down
1 change: 1 addition & 0 deletions bittensor/core/extrinsics/serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def do_serve_axon(
wallet=wallet,
wait_for_inclusion=wait_for_inclusion,
wait_for_finalization=wait_for_finalization,
sign_with="hotkey",
period=period,
)
return success, message
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_tests/test_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,7 @@ def test_do_serve_axon_is_success(
wallet=fake_wallet,
wait_for_inclusion=fake_wait_for_inclusion,
wait_for_finalization=fake_wait_for_finalization,
sign_with="hotkey",
period=None,
)

Expand Down Expand Up @@ -1530,6 +1531,7 @@ def test_do_serve_axon_is_not_success(subtensor, fake_wallet, mocker, fake_call_
wallet=fake_wallet,
wait_for_inclusion=fake_wait_for_inclusion,
wait_for_finalization=fake_wait_for_finalization,
sign_with="hotkey",
period=None,
)

Expand Down Expand Up @@ -1568,6 +1570,7 @@ def test_do_serve_axon_no_waits(subtensor, fake_wallet, mocker, fake_call_params
wallet=fake_wallet,
wait_for_inclusion=fake_wait_for_inclusion,
wait_for_finalization=fake_wait_for_finalization,
sign_with="hotkey",
period=None,
)
assert result == (True, "")
Expand Down
Loading