Skip to content

Ganache evm_mine lag #6048

Discussion options

You must be logged in to vote

The evm_mine RPC command in Ganache is used to manually mine a new block in the Ethereum Virtual Machine (EVM) simulation. When you send the evm_mine command via RPC, it does not immediately mine a block upon receiving the response. Instead, it adds a new block to the blockchain with a timestamp that corresponds to the current time.

In your case, where you're experiencing intermittent issues with the next line not recognizing the change in blocks, it's possible that the next line of code is executing before the new block is fully mined. The block time you mentioned is 12 seconds, which means it takes approximately 12 seconds for a new block to be added to the blockchain after calling evm_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ianrowan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants