holgern/beem

[Beem] [Version: 0.20.19] Showing wrong steem and sbd balances for some accounts

Closed this issue · 1 comments

Expected behavior

from beem.account import Account

acc=Account("ayasha")
inf=acc.get_balances()
steem=inf['available'][0]
sbd=inf['available'][1]

print("steem {} and sbd {}".format(steem, sbd))

This piece of code should return ayasha's actual steem and sbd balance . Not for her but for all steemit account in case other username being inputed.

Actual behavior

When i tried checking her balance, it showed me a wrong balance. Then i tried another two account,one of them was my own account and another one wasfreedom where my balance was showing wrong and freedom's one was accurate. Firstly i though it's a node issue, so i tried changing node, but nothing changed, where a js script/bot's result was accurate for all three account.

How to reproduce

from beem.account import Account

acc=Account("ayasha")
inf=acc.get_balances()
steem=inf['available'][0]
sbd=inf['available'][1]

print("steem {} and sbd {}".format(steem, sbd))
  • Install latest version of beem and run this code.

  • It will return you the steem and sbd balance of the account.

  • You will find the balance wrong for some account

  • It would be better trying with the mentioned account as i don't know for which which account it will show wrong balance.

Recording Of The Bug

https://youtu.be/kD61kg5PigQ

  • Python 3.6

  • Beem version 0.20.19

  • Operating system: Ubuntu 18.06

This is not a bug, beem was just showing the results faster than steemit.com.

after investigating, I'm confident that this is not a bug. The observation was, that beem shows 1.714 SBD, whereas steemtit.com shows 1.225 SBD.

After visting https://steemd.com/@ayasha, I saw that there was a claim of 0.489 SBD, which exlains the difference 1.225 + 0.489 = 1.714

So the only "bug" of beem is that it is faster than the rest :).