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

Support instant seal #225

Merged
merged 4 commits into from
Feb 3, 2021
Merged

Support instant seal #225

merged 4 commits into from
Feb 3, 2021

Conversation

JoshOrndorff
Copy link
Contributor

@JoshOrndorff JoshOrndorff commented Feb 2, 2021

This PR adds instant seal and interval seal as authoring schemes in the --dev service. This will allow users to easily run an instant seal node for testing their local development against moonbeam, while also allowing testing of block-time based things like staking and democracy periods, and also supporting manual seal for integration tests.

# Manual seal like we use in the tests, and when reproducing complex forking behavior
moonbase-alphanet --dev --tmp --sealing manual

# Instant seal for testing your contracts, bots, dapp, etc really fast like ganache
moonbease-alphanet --dev --tmp --sealing instant

# Interval seal for when you want blocks to come at a fixed time interval
# The parameter is miliseconds. So this will author every 6 seconds
# Useful for testing stuff that happens in block time eg. democracy
moonbase-alphanet --dev --tmp --sealing 6000

# The default is instant seal
moonbase-alphanet --dev --tmp

Checklist

  • ❌ Does it require a purge of the network?
  • ❌ You bumped the runtime version if there are breaking changes in the runtime ?
  • ✔️ Does it require changes in documentation/tutorials ?

@JoshOrndorff JoshOrndorff added A0-pleasereview Pull request needs code review. B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes C3-medium Elevates a release containing this PR to "medium priority". labels Feb 2, 2021
Copy link
Collaborator

@crystalin crystalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :)

@JoshOrndorff JoshOrndorff merged commit e018d42 into master Feb 3, 2021
@JoshOrndorff JoshOrndorff deleted the joshy-instant-seal branch February 3, 2021 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview Pull request needs code review. B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes C3-medium Elevates a release containing this PR to "medium priority".
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants