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

blockchain: Validate allowed votes in block context. #1036

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Feb 15, 2018

This moves the test for validating the votes in the block are eligible votes per the results of the ticket lottery into the checkBlockContext function where it more naturally belongs since it is only dependent on the block and its contextual position within the chain.

While here, it also refactors the check into a separate function named checkAllowedVotes to improve readability.

This moves the test for validating the votes in the block are eligible
votes per the results of the ticket lottery into the checkBlockContext
function where it more naturally belongs since it is only dependent on
the block and its contextual position within the chain.

While here, it also refactors the check into a separate function named
checkAllowedVotes to improve readability.
@davecgh davecgh force-pushed the blockchain_validate_allowed_votes_block_context branch from 64e3a35 to 6086f98 Compare February 15, 2018 22:24
@davecgh davecgh merged commit 6086f98 into decred:master Feb 15, 2018
@davecgh davecgh deleted the blockchain_validate_allowed_votes_block_context branch February 15, 2018 23:35
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