New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_account_history may terminate early due to using first op as sentinel value #168
Labels
Comments
I was trying to trigger this issue but i was not able to fully understand it. I am not able to get who is the owner of object 1.11.0, i know it was a claim balance operation to account 1.2.1090:
But that does not tell me who made the operation to run get_account_history and check if the loop ends earlier than it should. If someone haves more light over this please post so i can try to get fixed. |
takaaki7
added a commit
to takaaki7/bitshares-core
that referenced
this issue
Aug 4, 2017
oxarbitrage
added a commit
that referenced
this issue
Aug 4, 2017
fix get_account_history may terminate early #168
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From @theoreticalbts on February 15, 2016 15:4
Calling
get_account_history
on the account which ownsget_object 1.11.0
may cause the iteration to stop early because of a confusion between two cases:operation_history_object
, we have reached the end of the listoperation_history_object
exists and has ID zeroThe simple fix for new chains is to create a dummy sentinel
operation_history_object
with ID zero. However, this fix will not work on already-deployed chains because it will change history ID's.A deployable fix would append
1.11.0
to its result when:1.11.0
Copied from original issue: cryptonomex/graphene#578
The text was updated successfully, but these errors were encountered: