xeroc / piston-lib

Python Library for Steem
MIT License
40 stars 33 forks source link

account.history doesn't return the latest transaction #48

Open fxnormaluser opened 7 years ago

fxnormaluser commented 7 years ago

When I try with the .rawhistory function, I get one more transaction.

from piston.steem import Steem
from piston.account import Account

account=Account('mebot')

h = 0
r = 0

for i in account.history():

    h += 1

for i in account.rawhistory():

    r += 1

print(h)
print(r)

returns: 2 3

Netherdrake commented 7 years ago

Yes, its a bug in Account.history. It has been fixed in steem-python library, feel free to backport it to Piston.

fxnormaluser commented 7 years ago

I didn't even know there was a steem-python library. The rebranding and name changing is very confusing.

Netherdrake commented 7 years ago

steem-python is a fork of Piston, and an 'official' Steem library.

https://github.com/steemit/steem-python