piston-lib icon indicating copy to clipboard operation
piston-lib copied to clipboard

account.history doesn't return the latest transaction

Open fxnormaluser opened this issue 8 years ago • 3 comments

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

fxnormaluser avatar May 25 '17 16:05 fxnormaluser

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

Netherdrake avatar May 25 '17 18:05 Netherdrake

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

fxnormaluser avatar May 25 '17 18:05 fxnormaluser

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

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

Netherdrake avatar May 25 '17 19:05 Netherdrake