This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 683
evm_mine
is with thousands of blocks is way too slow
#4409
Comments
Hm, I couldn't reproduce. I ran ganache:
and then ran these curl commands:
and the block number advanced 27000 blocks as expected. I wonder if there is another bug related to #3248 lurking here. |
Hey @davidmurdoch, And re: #3248 I believe we are properly awaiting everything and should have a single evm_mine call active at any given time. |
Ah ok, in that case this is certainly related to the TODO in the code that mines the blocks:
|
davidmurdoch
changed the title
evm_mine does not consistently advance the total # of blocks
May 17, 2023
evm_mine
is with thousands of blocks is way too slow
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue
While running the latest version of ganache running in GitHub actions and using the
evm_mine
with blocks param sometimes does not advance the specified amount of blocks.Evidence and Usage
Block advancement is currently executed as follows:
A typical amount of blocks to advance would be ~27000. Block number is then polled until it reaches expected blocks number before moving to next step in tests. An example of the output after polling for 120 secs is:
And block reached before timing out
Not this is only ~130 blocks
Ganache is run with the the following config
--fork --miner.blockTime 12
The text was updated successfully, but these errors were encountered: