1111from chia .consensus .constants import replace_str_to_bytes
1212from chia .consensus .default_constants import DEFAULT_CONSTANTS , update_testnet_overrides
1313from chia .protocols .outbound_message import NodeType
14- from chia .server .aliases import TimelordService
1514from chia .server .resolve_peer_info import get_unresolved_peer_infos
1615from chia .server .signal_handlers import SignalHandlers
1716from chia .server .start_service import RpcInfo , Service , async_run
1817from chia .timelord .timelord import Timelord
1918from chia .timelord .timelord_api import TimelordAPI
2019from chia .timelord .timelord_rpc_api import TimelordRpcApi
20+ from chia .timelord .timelord_service import TimelordService
2121from chia .util .chia_logging import initialize_service_logging
2222from chia .util .config import load_config , load_config_cli
2323from chia .util .default_root import resolve_root_path
2424from chia .util .task_timing import maybe_manage_task_instrumentation
2525
26- # See: https://bugs.python.org/issue29288
27- "" .encode ("idna" )
28-
2926SERVICE_NAME = "timelord"
3027
3128
@@ -36,7 +33,6 @@ def create_timelord_service(
3633 connect_to_daemon : bool = True ,
3734) -> TimelordService :
3835 service_config = config [SERVICE_NAME ]
39-
4036 network_id = service_config ["selected_network" ]
4137 overrides = service_config ["network_overrides" ]["constants" ][network_id ]
4238 update_testnet_overrides (network_id , overrides )
0 commit comments