piston-lib
piston-lib copied to clipboard
account.history doesn't return the latest transaction
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
Yes, its a bug in Account.history. It has been fixed in steem-python library, feel free to backport it to Piston.
I didn't even know there was a steem-python library. The rebranding and name changing is very confusing.
steem-python is a fork of Piston, and an 'official' Steem library.
https://github.com/steemit/steem-python