Skip to content
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

Block generation period #491

Merged
merged 48 commits into from
Jun 18, 2024
Merged

Block generation period #491

merged 48 commits into from
Jun 18, 2024

Conversation

mikiw
Copy link
Contributor

@mikiw mikiw commented Jun 12, 2024

Usage related changes

  • --blocks-on-demand functionality is changed to --block-generation-on <transaction|demand|<SECONDS>

Development related changes

  • now server is spawned with task::spawn and via into_future() along with create_block_interval() task when --block-generation-on <SECONDS> to handle ctrl c signal properly
  • mod blocks_on_demand_tests needed a rename to mod blocks_generation_tests along with filename

Checklist:

  • Checked out the contribution guidelines
  • Applied formatting - ./scripts/format.sh
  • No linter errors - ./scripts/clippy_check.sh
  • No unused dependencies - ./scripts/check_unused_deps.sh
  • No spelling errors - ./scripts/check_spelling.sh
  • Performed code self-review
  • Rebased to the latest commit of the target branch (or merged it into my branch)
  • Updated the docs if needed - ./website/README.md
  • Linked the issues resolvable by this PR - linking info
  • Updated the tests if needed; all passing - execution info

@mikiw mikiw marked this pull request as draft June 12, 2024 11:18
@mikiw mikiw linked an issue Jun 12, 2024 that may be closed by this pull request
@mikiw mikiw marked this pull request as ready for review June 12, 2024 14:42
@mikiw mikiw requested a review from FabijanC June 12, 2024 19:20
crates/starknet-devnet/src/cli.rs Outdated Show resolved Hide resolved
website/versioned_docs/version-0.0.6/api.md Outdated Show resolved Hide resolved
website/docs/blocks.md Show resolved Hide resolved
website/docs/dump-load-restart.md Show resolved Hide resolved
crates/starknet-devnet/src/main.rs Show resolved Hide resolved
crates/starknet-devnet/src/main.rs Show resolved Hide resolved
crates/starknet-devnet/tests/test_blocks_generation.rs Outdated Show resolved Hide resolved
@mikiw mikiw requested a review from FabijanC June 18, 2024 12:04
@mikiw mikiw merged commit 24ed52d into main Jun 18, 2024
1 check passed
@mikiw mikiw deleted the block-generation-period branch June 18, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mining blocks at a certain interval
2 participants