From be698b79304c4cd226e2ab5461b437ec91e34802 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Sat, 28 Jan 2023 14:57:10 -0500 Subject: [PATCH] change back to ip str --- bittensor/_subtensor/extrinsics/serving.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bittensor/_subtensor/extrinsics/serving.py b/bittensor/_subtensor/extrinsics/serving.py index cc0dad2369..332e3b296a 100644 --- a/bittensor/_subtensor/extrinsics/serving.py +++ b/bittensor/_subtensor/extrinsics/serving.py @@ -98,6 +98,8 @@ def serve_extrinsic ( output['hotkey'] = wallet.hotkey.ss58_address if neuron_up_to_date: + # Convert back to ip string for printing. + output['ip'] = net.ip_from_int(output['ip']) bittensor.__console__.print(":white_heavy_check_mark: [green]Already Served[/green]\n [bold white]{}[/bold white]".format( json.dumps(output, indent=4, sort_keys=True) ))