diff --git a/bittensor/subtensor.py b/bittensor/subtensor.py index d1ebac9df4..c50ec7a4ca 100644 --- a/bittensor/subtensor.py +++ b/bittensor/subtensor.py @@ -23,7 +23,6 @@ import argparse import copy -import functools import socket import time from typing import List, Dict, Union, Optional, Tuple, TypedDict, Any @@ -109,18 +108,6 @@ KEY_NONCE: Dict[str, int] = {} -####### -# Monkey patch in caching the convert_type_string method -####### -if hasattr(RuntimeConfiguration, "convert_type_string"): - original_convert_type_string = RuntimeConfiguration.convert_type_string - - @functools.lru_cache(maxsize=None) - def convert_type_string(_, name): - return original_convert_type_string(name) - - RuntimeConfiguration.convert_type_string = convert_type_string -####### class ParamWithTypes(TypedDict): diff --git a/requirements/prod.txt b/requirements/prod.txt index 2d9ecabab5..e02456f998 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -25,9 +25,9 @@ python-statemachine~=2.1.2 retry requests rich -scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class +scalecodec==1.2.11 shtab~=1.6.5 -substrate-interface~=1.7.5 +substrate-interface~=1.7.9 termcolor tqdm uvicorn<=0.30 diff --git a/scripts/environments/apple_m1_environment.yml b/scripts/environments/apple_m1_environment.yml index a3712e267c..25824aa64e 100644 --- a/scripts/environments/apple_m1_environment.yml +++ b/scripts/environments/apple_m1_environment.yml @@ -228,7 +228,7 @@ dependencies: - retry==0.9.2 - rich==12.5.1 - rsa==4.9 - - scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class + - scalecodec==1.2.11 - scikit-learn==1.2.2 - scipy==1.10.1 - sentencepiece==0.1.99 @@ -242,7 +242,7 @@ dependencies: - sqlalchemy==2.0.19 - starlette==0.37.2 - streamlit==1.22.0 - - substrate-interface==1.5.2 + - substrate-interface==1.7.9 - tenacity==8.2.2 - termcolor==2.1.1 - threadpoolctl==3.1.0