opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
914 stars 316 forks source link

Fix Pysubstrate Websockets to Allow for Async Calls #1736

Closed garrett-opentensor closed 1 month ago

garrett-opentensor commented 8 months ago

Description: We have identified an issue in the Python Substrate Interface that causes interactions with the chain to hang when using multithreading in the Bittensor python API. This is due to an issue surrounding this section of code which drops unexpected requests.

https://github.com/polkascan/py-substrate-interface/blob/84485c1f7774016ed2f93380b3a6ec041c28b2c1/substrateinterface/base.py#L293

AC:

thewhaleking commented 1 month ago

Fixed with 8.0.0