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

Require 2 conditions to confirm election #1157

Merged
merged 9 commits into from
Sep 22, 2018

Conversation

SergiySW
Copy link
Contributor

@SergiySW SergiySW commented Sep 7, 2018

Both sum >= node.config.online_weight_minimum & have_quorum () required
To prevent possible situations with confirmed election without calling block_processor.force or block_processor.force without confirmed election

Both sum >= node.config.online_weight_minimum & have_quorum () required
To prevent possible situations with confirmed election without calling block_processor.force or block_processor.force without confirmed election
@clemahieu
Copy link
Contributor

Blocks need to be able to be forced out before quorum is reached otherwise consensus could deadlock.

@SergiySW
Copy link
Contributor Author

SergiySW commented Sep 7, 2018

For forcing blocks
Confirmation still should require sum >= online_weight_minimum

@rkeene rkeene added this to the V17.0 milestone Sep 10, 2018
@rkeene rkeene modified the milestones: V17.0, V16.1 Sep 21, 2018
@rkeene rkeene self-requested a review September 21, 2018 17:53
Copy link
Contributor

@rkeene rkeene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

Move tally-sum-to-online-stake comparison inside the `have_quorum()` function
@rkeene rkeene added the incomplete This item is incomplete and should not be merged if it is a pull request label Sep 21, 2018
@rkeene rkeene removed the incomplete This item is incomplete and should not be merged if it is a pull request label Sep 21, 2018
@rkeene
Copy link
Contributor

rkeene commented Sep 22, 2018

Ensure sum of all votes is greater than the online minimum before attempting to get confirmation on a block

@rkeene rkeene merged commit 199552e into nanocurrency:master Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants