trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.31k forks source link

adjusting to rpc limits #6160

Open hypnagonia opened 1 year ago

hypnagonia commented 1 year ago

I want to develop and deploy a set of contracts (lets say 10) Using infura rpc, free plan

Due too many requests like getBalance, getReceipt, getBlocks, the deployment ends up with rpc rejection and the process gets terminated with a non-zero code

How i could at least add a retry logic with a cooldown instead of complete termination or adjust the requests per minute rate of hitting an rpc provider?

GauravDhak commented 1 year ago

hey 🖐️@hypnagonia i can help you to solve this issue

eggplantzzz commented 1 year ago

Hey @hypnagonia, currently this isn't possible in Truffle. We would have to implement some sort of retry logic as you described. We'll put it in the backlog, thanks!