RE: get_account_history does not return the first element when index> -1 by crokkon
Viewing a response to: @crokkon/re-holger80-getaccounthistory-does-not-return-the-first-element-when-index-1-20180421t152307328z
utopian-io·@holger80·
0.000 HBDThe bug was introduced by PR https://github.com/steemit/steem/pull/2343. The bug is only there when using a 19.4 node (e.g. https://api.steemit.com). ``` from steem.account import Account acc = Account("test") hist=[] for h in acc.get_account_history(-1,13,order=1,raw_output=True): hist.append(h) print(hist[0][0], hist[0][1]["op"][0]) ``` 0, account_create ``` hist=[] for h in acc.get_account_history(-1,12,order=1,raw_output=True): hist.append(h) print(hist[0][0], hist[0][1]["op"][0]) ``` 1 transfer ``` hist=[] for h in acc.get_account_history(5,5,order=1,raw_output=True): hist.append(h) print(hist[0][0], hist[0][1]["op"][0]) ``` 1 transfer I'm not able to receive the first `account_create` operation, when I'm not using `index =-1 and limit= 13 `. ` acc.get_account_history(-1,12)` returns only 12 operation.
👍 crokkon,