trufflesuite / ganache

: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
2.62k stars 680 forks source link

fix: make fetching logs from fork efficient #4250

Open area opened 1 year ago

area commented 1 year ago

When querying a forked chain for events pre-fork, a request is currently sent for every block which is very inefficient if you're querying a large block range, and can cause requests to respond only after a very long time, making the ability to fork useless if such requests are required. This PR aims to batch all of those in to one request to the forked endpoint.

davidmurdoch commented 1 year ago

Looks like a dplicate of https://github.com/trufflesuite/ganache/pull/3692

Don't close this one, we'll evaluate the two approaches.