-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have auto and interval mining at the same time #7901
Comments
this should be possible to support by adding a new variant that combines both of these: foundry/crates/anvil/src/eth/miner.rs Lines 102 to 108 in d7eac74
|
@mattsse is this high priority? I would like to work on it but it's my first time interacting with foundry so it will take some time to get this done |
not high priority, the task here would be to add a new variant that is Mixed {
auto: ReadyTransactionMiner,
fixed: FixedBlockTimeMiner
} and then polls both |
oh looks simple enough, thanks! |
Hi @caiquejjx thanks for picking this up, draft is looking good! I think it makes sense to add RPC methods for this ( cc @mattsse |
thanks @zerosnacks, I'll follow up with the RPC methods implementation then |
Marking as Thanks for your PR @caiquejjx! |
Component
Anvil
Describe the feature you would like
Use case: Have fast transactions (= fast CI pipelines and tests) with automated software that reacts on events, like bots, indexers, etc
At the moment anvil allows either one mining mode or the other - auto, or interval. This is specifically signaled by the interval mining mode, that warns that auto is disabled.
Additional context
No response
The text was updated successfully, but these errors were encountered: