Skip to content

Commit

Permalink
Merge pull request #2156 from opentensor/feat/ledger-integration
Browse files Browse the repository at this point in the history
[Ledger Integration] [Feature] bump pysub to 1.7.9+
  • Loading branch information
camfairchild authored and ibraheem-opentensor committed Jul 25, 2024
1 parent efa6239 commit a923bb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
13 changes: 0 additions & 13 deletions bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import argparse
import copy
import functools
import socket
import time
from typing import List, Dict, Union, Optional, Tuple, TypedDict, Any
Expand Down Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/environments/apple_m1_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a923bb8

Please sign in to comment.