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

Fix half principal rep check #3358

Merged
merged 3 commits into from
Jun 30, 2021

Conversation

dsiganos
Copy link
Contributor

Check for half principal even if the account is a duplicate

An account might be added that is not a half principal but might become a half principal later. So we should check for half principal every time.

Convert half_principal counter to boolean

The counting of half principals without tracking what is counted is
unreliable. Fortunately, we only care about whether a half principal
exists or not. So therefore convert the counter to a boolean so that
the counter does not get used when it is wrong.

An account might be added that is not a half principal but might become
a half principal later. So we should check for half principal every time.
The counting of half principals without tracking what is counted is
unreliable. Fortunately, we only care about whether a half principal
exists or not. So therefore convert the counter to a boolean so that
the counter does not get used when it is wrong.
@zhyatt zhyatt added this to the V23.0 milestone Jun 29, 2021
@zhyatt zhyatt added the quality improvements This item indicates the need for or supplies changes that improve maintainability label Jun 29, 2021
@dsiganos dsiganos merged commit 966180a into nanocurrency:develop Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants