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

cleanup and simplify how we generate the genesis block in user_testing #2986

Merged

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented Aug 1, 2019

I suspect some recent changes inadvertently broke "user testing" due to how we set the timestamp on the genesis block.
This PR simplifies genesis block creation in user testing. We just hard-code the timestamp now (we did before but at some point we started overwriting it with now().

We now also just hard-code the nonce to 0 on both testing modes - it is fast to mine the dev genesis block in "user_testing" so just do that each time.
To make this consistent we simply call pow::mine_genesis_block() when setting up the genesis block during user testing.

@antiochp antiochp added the bug label Aug 1, 2019
@antiochp antiochp added this to the 2.x.x milestone Aug 1, 2019
@antiochp antiochp requested a review from yeastplume August 1, 2019 15:48
@antiochp
Copy link
Member Author

antiochp commented Aug 1, 2019

This affects only automated tests and user testing and these all still appear to work.
Merging.

@antiochp antiochp merged commit 4bd3aa1 into mimblewimble:master Aug 1, 2019
@antiochp antiochp deleted the fix_user_testing_genesis_dev branch August 1, 2019 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant