-
Notifications
You must be signed in to change notification settings - Fork 683
Allow mining to be completely disabled on startup #248
Comments
Will be possible with this new feature that new transactions only be mined when |
Yes, that would be the intent. |
Hey, any news about this feature? Thanks! |
Because |
We may enable this in the future, but it would be under a new option, something like |
@davidmurdoch fairly easy to add; I've considered adding it recently for a certain test scenario. I believe this was the intention @tcoulter originally had with I can add it in the Filecoin implementation 👍 |
@tcoulter was under the impression that you already did this via |
Oh, would you look at that:
I must be thinking of a different variable, or my internal time machine is warped by all the different changes I've done 😅 I double checked and the code should work that way; I'll need to update that test. Would you like to keep it as is then or would you prefer that blockTime gets set to |
For anyone following this thread, the above message about a negative block time is only currently available on our upcoming Filecoin-flavored Ganache. As mentioned by @davidmurdoch, this isn't currently supported in the default Ethereum-flavored Ganache |
I suggested adding the blockTime -1 flag to ethereum ganache in an engineering meeting today, and the consensus there was that it weird, that it removes the ability to set an actual blocktime, and this it really is just a different feature and they shouldn't be joined. Those arguments make sense to me. Since we are going forward with a |
sounds good, i'll make the changes in |
@seesemichaelj looks like |
Ok..what is the accompanying help text/description that's going to make it clear to the user what it does? |
I think it'll be different depending on the chain. For CLI docs, I'll probably go with something like
|
Ok, I'll add a Also does this mean that |
It would still mine it. |
Do you want one method Also do you want those to be |
|
How can this be done in the latest cli version? |
You need to stop the miner via |
For complete determinism in our tests, like where we want to be able to compare generated blocks for strict equality, we currently need to set a high
blockTime
value and then useevm_mine
with our desired timestamp. It'd be nice if we could just specify ablockTime
of -1 to disable mining completely to always ensure determinism without having to choose an arbitraryblockTime
value.The text was updated successfully, but these errors were encountered: