Hardhat node extremely slow compared to using archive node directly #3766
Unanswered
LaGregance
asked this question in
Troubleshooting
Replies: 1 comment 2 replies
-
Hi @LaGregance. There are two things that make using Hardhat in fork mode significantly slower than using a real node directly:
Hope that explains it! Let me know if you have more questions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I build an algorithms that need to perform a lot of
eth_call
to make calculation and then execute a smart contract on Polygon. Using a node from Quicknode, the whole process take around 2 minutes.For testing purpose I want to run the algorithm under an hardhat node that fork the Polygon network (using the same Quicknode as archive node in hardhat config). I really need hardhat in this case because I want to be able to give me some ERC20 before running tests and also deploy the last version of my contract (I cannot use a live testnet cause my contract had so much interaction with many of DeFi protocols).
Everything is working but when it take 2 minutes when using the archive node directly, it take around 45 minutes under hardhat.
Do you have an idea to increase the hardhat speed or any other way that can solve my problem ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions