Closed khssnv closed 2 years ago
SubstrateInterface.submit_extrinsic with wait_for_finalization flag set never returns if called by asyncio.to_thread.
wait_for_finalization
receipt = await asyncio.to_thread( substrate.submit_extrinsic, extrinsic, wait_for_inclusion=True, wait_for_finalization=True, ) print("not reachable")
$ pip show substrate-interface Name: substrate-interface Version: 1.2.0 $ python -V Python 3.9.10 $ uname -a Linux e14 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Connection: websocket
I tried to debug and can't reproduce the issue now. I will reopen it later if I can reproduce the problem.
SubstrateInterface.submit_extrinsic with
wait_for_finalization
flag set never returns if called by asyncio.to_thread.Example
Environment
Connection: websocket