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

Adds a flag that controlls block production and pulls changes to be v0.37.x compliant #33

Merged
merged 40 commits into from
Aug 21, 2023

Conversation

p-offtermatt
Copy link
Member

Closes #32

This PR adds a new flag, --block-time.
This flag allows setting how fast CometMock produces blocks, and this includes disabling automatic block production altogether.
This needed a rewrite of the main.go file. I decide to use the urfave/cli library, because it was the only one that allowed me to cleanly keep the existing syntax precisely as it is, but also to add a new, optional flag.

The update to v0.37.x is necessary to fix the test script and enable actually testing the changes.
These are all changes to files outside of main.go and the README.

p-offtermatt and others added 30 commits July 27, 2023 12:01
Change url from github.com/p-offtermatt/CometMock to github.com/informalsystems/CometMock
@p-offtermatt p-offtermatt merged commit a5cda3a into main Aug 21, 2023
1 check passed
@p-offtermatt p-offtermatt deleted the ph/block-production-flag branch September 18, 2023 11:36
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 way to disable automatic block production
1 participant