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 678 forks source link

Can we forward multiple blocks quickly? #3843

Closed mookim-eth closed 1 year ago

mookim-eth commented 1 year ago

evm_mine can only forward one block, and consecutively requesting evm_mine for thousand times request a lot of time

Can we add another RPC method for forwarding multiple blocks quickly, like evm_increaseblocks(10000)?

I just want to set block height to a bigger value, no need to query these generated/skipped blocks.

davidmurdoch commented 1 year ago

You can. Use evm_mine with params [{ blocks: "0x1234" }].