-
Notifications
You must be signed in to change notification settings - Fork 786
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 zero voting power #3220
fix zero voting power #3220
Conversation
Currently, a.voting_power of users who haven't voted for more than 5 days but had some financial transaction (e.g., claim reward) is set to 0, which no longer represents the voting power at the a.last_vote_time. This fix returns the previous a.voting power when this reset happens (unless current_mana is 0, case 2 below). This fix is safe cause vp_t1 = 0 can occur only in the following two cases: 1) 5 days passed current voting power (calculated from a.voting_power and a.last_vote_time) will be 100% either way. But this fix is more informative, since it returns the last voting power. 2) vp_t2u = 0 L2085 return 0 (same as before)
fix zero voting power
@mvandeberg Thank you for your quick response. But why the check has failed? I don't see any problem and I can't see the log. Is there any way, that I can do that check locally? I made some contributions to busy.org and it provides some checking procedure before commit, which is very convenient. I'd like to know if there is such for steem. Thanks! |
From our CI server:
Just looks like build errors... You can replicate our CI system via a Docker build on your local machine. |
@mvandeberg Thanks! I'll check it out and resubmit. |
@mvandeberg Is there a way to add commit to previous pull request? I tried, but I couldn't, so I made a new PR: #3221 Built and steemd was loaded well on my machine (MacOS). You can close this one and merge #3221 Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR fails CI due to a typo.
Development has continued on #3221.
Local PR for #3218