0xSpaceShard / starknet-devnet-rs

A local testnet for Starknet... in Rust
https://0xspaceshard.github.io/starknet-devnet-rs/
MIT License
104 stars 60 forks source link

Add mining blocks at a certain interval #467

Closed ivpavici closed 2 months ago

ivpavici commented 3 months ago

A new block should be created at a fixed time interval selected by the user.

This functionality exists in Anvil and Katana:

mikiw commented 3 months ago

I can take it since it's related to time and blocks

FabijanC commented 3 months ago

in CLI it could be governed by:

--block-generation <ON_DEMAND|PERIODIC>
--block-generation-period # only usable with --block-generation PERIODIC
mikiw commented 3 months ago

requires a merge of https://github.com/0xSpaceShard/starknet-devnet-rs/pull/480/files but I already started based on this branch

mikiw commented 3 months ago

I'll implement --block-generation-on <transaction|demand|<SECONDS> as discussed on the chat.