Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.

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

Open
fxnormaluser opened this issue May 25, 2017 · 3 comments
Open

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

fxnormaluser opened this issue May 25, 2017 · 3 comments

Comments

@fxnormaluser
Copy link

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
Copy link
Collaborator

Netherdrake commented May 25, 2017

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

@fxnormaluser
Copy link
Author

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

@Netherdrake
Copy link
Collaborator

Netherdrake commented May 25, 2017

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants