banteg / multicall.py

aggregate results of multiple smart contract calls into one
MIT License
246 stars 106 forks source link

Unable to use Multicall with threads in docker. #53

Closed cbsystango closed 1 year ago

cbsystango commented 1 year ago

Docker throws following error when multicall is executed in threads(parallel execution)

mcall_error

cbsystango commented 1 year ago

Problem is resolved here: https://github.com/cbsystango/multicall-thread-safe/

stas commented 1 year ago

Confirming the latest build is broken for us as well.

@cbsystango running web3 calls in sub-processes is memory-expensive, see #38

stas commented 1 year ago

Downgrading web3.py to v5.27 worked.

BobTheBuidler commented 1 year ago

web3.py v5.28 thru v5.31.2 have issues with the async provider. v5.27 will work as will ^v5.31.3