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

Prevent creation of motions with 0 reputation in domain #1138

Merged
merged 1 commit into from
May 25, 2023

Conversation

area
Copy link
Member

@area area commented May 10, 2023

Mitigates the bug introduced in #1101, whereby if no reputation was present in a domain, a motion could still be created and would immediately become finalizable (though would not execute, as equal - zero - votes had been revealed for each side). Previously, the motion would go through the usual voting and reveal lifecycle, though without actions being able to be taken (as no reputatation exists).

While it could be argued this is desirable behaviour, it happens in a very non-standard way (with relevant timestamps being 0, and therefore in the past), it's better to prevent such useless motions from being created in the first place, which is what this PR is intending to do.

@kronosapiens kronosapiens force-pushed the fix/zero-reputation-motions branch from feba068 to 0cea94d Compare May 25, 2023 00:41
@kronosapiens kronosapiens merged commit c767244 into develop May 25, 2023
@kronosapiens kronosapiens deleted the fix/zero-reputation-motions branch May 25, 2023 02:20
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.

2 participants