Skip to content

Commit

Permalink
Upgrade web3.py to 5.31.3 getting rid of thread safety patch
Browse files Browse the repository at this point in the history
The awesome guys at web3.py included the fix for
ethereum/web3.py#1847 in that release
  • Loading branch information
LefterisJP committed Dec 4, 2022
1 parent bd86c66 commit 17f94fb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 52 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ gevent==22.10.2
greenlet==2.0.1
gevent-websocket==0.10.1
wsaccel==0.6.3 # recommended for acceleration of gevent-websocket. But abandoned.
web3==5.31.1
web3==5.31.3
rotki-pysqlcipher3==2022.8.1
requests==2.28.1
urllib3==1.26.13
Expand Down
3 changes: 0 additions & 3 deletions rotkehlchen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
from rotkehlchen.logging import RotkehlchenLogsAdapter
from rotkehlchen.server import RotkehlchenServer

# monkey patch web3's non-thread safe lru cache with our own version
from rotkehlchen.chain.ethereum import patch_web3 # isort:skip # pylint: disable=unused-import # noqa

logger = logging.getLogger(__name__)
log = RotkehlchenLogsAdapter(logger)

Expand Down
45 changes: 0 additions & 45 deletions rotkehlchen/chain/ethereum/patch_web3.py

This file was deleted.

3 changes: 0 additions & 3 deletions rotkehlchen/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ class TestEnvironment(SerializableEnumMixin):

from rotkehlchen.tests.fixtures import * # noqa: F403

# monkey patch web3's non-thread safe lru cache with our own version
from rotkehlchen.chain.ethereum import patch_web3 # isort:skip # pylint: disable=unused-import # noqa

assert sys.version_info.major == 3, 'Need to use python 3 for rotki'
assert 9 == sys.version_info.minor, 'Need to use python 3.9 for rotki'

Expand Down

0 comments on commit 17f94fb

Please sign in to comment.