Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Enable snapshot and finalizer commits integration #852
Enable snapshot and finalizer commits integration #852
Changes from 1 commit
743dd36
fede51c
71eb8fc
4fbab20
41b5ce8
a1dfe94
19b358c
11b0166
1da775e
181f109
d90c996
120b1e2
d300fdb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest keeping this function in the current test
feature_snapshot_finalization.py
because it's not generic enough to use in multiple scenarios and then work on it separately.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be used in #883. I used similar algorithms in couple of tests already.
Thanks, I will fix it when move this function al long as
wait_for_vote_and_disconnect
to the util.py. Let's focus on this in different PR.If you like to control, you probably write your code explicitly. This function is a variation of
generatetoaddress(X * EPOCH_LENGTH)
which ensures finalizer is in time to vote for every epoch.