Skip to content

Handle proposals correctly with single member #1079

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

Merged
merged 3 commits into from
Apr 17, 2020

Conversation

eddyashton
Copy link
Member

Fixes #1075.

The problem was the default value of state in the Proposal constructor - we should read this state from the response, can't assume it is Open.

Then the logic in vote_using_majority is mostly sound, except for trying to return the last response, which may not exist. Instead, it now returns the proposal. This changes the return type of a bunch of functions which return vote_using_majority(...), but it looks like nothing was using their return values so this has no impact.

@eddyashton eddyashton requested a review from a team as a code owner April 17, 2020 17:13
@ghost
Copy link

ghost commented Apr 17, 2020

single_member_fixes@7417 aka 20200417.18 vs master ewma over 50 builds from 6987 to 7413
images

Copy link
Member

@achamayou achamayou left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!

@achamayou achamayou merged commit 05fab06 into microsoft:master Apr 17, 2020
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.

start_test_network.sh does not work with a single member
2 participants