steem-python icon indicating copy to clipboard operation
steem-python copied to clipboard

The voting power returned from Python library is inconsistent with steemd

Open yuxisteem opened this issue 8 years ago • 1 comments

I have found a potential bug in Steem Python library. The voting power returned from Python library is inconsistent from the VP returned from steemd.com. For example, I ran the Python script to get my VP:

#!/usr/bin/env python

from steem.account import Account

account = Account("yuxid")
print("VP: %s" % account.voting_power())

At the time of testing, it returns:

VP: 43.48

However, it shows 59.39% in steemd

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

yuxisteem avatar Nov 16 '17 11:11 yuxisteem

That is actually correct behaviour. :) The VP value is only updated when you vote, so with the python query you get that value. The value on Steemd.com takes VP recovery into account and shows the actual value as if you would vote at that moment. Hope that explains.

E-D-A avatar Nov 16 '17 17:11 E-D-A