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

stake: Check minimum req outputs for votes earlier. #1819

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Aug 7, 2019

There is no reason to perform a bunch of additional checks when there is no possible way a transaction can be vote due to not having at least the minimum required number of outputs for it to possibly be one.

@davecgh davecgh added this to the 1.5.0 milestone Aug 7, 2019
@aarcamp
Copy link
Contributor

aarcamp commented Aug 7, 2019

Hey, I'm the one who reported this via the Decred Slack. Looks good, thanks for fixing!

There is no reason to perform a bunch of additional checks when there is
no possible way a transaction can be vote due to not having at least the
minimum required number of outputs for it to possibly be one.
@davecgh davecgh force-pushed the stake_vote_early_min_req_outputs_check branch from 242c552 to 82b863e Compare August 7, 2019 18:26
@davecgh davecgh merged commit 82b863e into decred:master Aug 7, 2019
@davecgh davecgh deleted the stake_vote_early_min_req_outputs_check branch August 8, 2019 00:19
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.

3 participants