starknet-devnet-rs
starknet-devnet-rs copied to clipboard
Add mining blocks at a certain interval
A new block should be created at a fixed time interval selected by the user.
This functionality exists in Anvil and Katana:
evm_setIntervalMiningin https://book.getfoundry.sh/reference/anvil/#special-methods- https://book.dojoengine.org/toolchain/katana/mining#interval-mining
I can take it since it's related to time and blocks
in CLI it could be governed by:
--block-generation <ON_DEMAND|PERIODIC>
--block-generation-period # only usable with --block-generation PERIODIC
requires a merge of https://github.com/0xSpaceShard/starknet-devnet-rs/pull/480/files but I already started based on this branch
I'll implement --block-generation-on <transaction|demand|<SECONDS> as discussed on the chat.