You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
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:
Hey @davidmurdoch,
It may be difficult to reproduce as it occurs variably, I think the blocks are being mined but the call is taking varying amounts of time, sometimes very long(> 60s). The only reason for the failure is a timeout we have set up. So problem isnt exactly that the blocks arent being mined but the performance
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:
// TODO(perf): add an option to mine a bunch of blocks in a batch so
// we can save them all to the database in one go.
// Developers like to move the blockchain forward by thousands of blocks
// at a time and doing this would make it way faster
davidmurdoch
changed the title
evm_mine does not consistently advance the total # of blocksevm_mine is with thousands of blocks is way too slow
May 17, 2023
Sign up for freeto 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: