Skip to content
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

missing transactions when viewing account history #334

Open
officiallymarky opened this issue Oct 1, 2021 · 0 comments
Open

missing transactions when viewing account history #334

officiallymarky opened this issue Oct 1, 2021 · 0 comments

Comments

@officiallymarky
Copy link

officiallymarky commented Oct 1, 2021

I am trying to pull account history from the account utopis, and find all transactions to themarkymark.

When I do so, I am missing transactions that appear when using HiveJS, RPC nodes directly, and HiveSQL

Example Code:

hive = Hive(node=['https://api.deathwing.me'], appbase = True)
utopis_account = Account('utopis')

divs = []

hive_history = utopis_account.history(start=-1, only_ops=['transfer'])
for transaction in hive_history:
	if transaction['to'] == user:
        divs.append([transaction['timestamp'], transaction['to'], 'HIVE', 
            Amount(transaction['amount']).amount])

history = get_history()

Specifically between these two transactions are five other transactions not being reported.

image

Viewing all transactions from HiveJS, Hive RPC, or HiveSQL I see the following transactions in between.

image

If I remove only_ops=['transfer'], and manually filter the results, I get the proper transactions.

        hive = Hive(node=['https://api.deathwing.me'])
        utopis = Account('utopis')

        divs = []

        hive_history = utopis.history(start=-1)
        for transaction in hive_history:
            if transaction['type'] == 'transfer' and transaction['to'] == user:
                divs.append([transaction['timestamp'], transaction['to'], 'HIVE', Amount(transaction['amount']).amount])
        history = get_history()

image

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

No branches or pull requests

1 participant