Bug in pulling account history in Beem 0.24.26

image.png

I was building an update to my Hive Engine Tools to pull up details from the @utopis project and I noticed some inconsistencies that I couldn't explain.

When I listed out transactions going from @utopis to @themarkymark I noticed there was a gap of transactions.

image.png

Here you can see some of the transactions for @utopis to @themarkymark, specifically look from top to bottom starting with 20.424 where the next transaction is 84.385. I repeated this code over and over and I keep getting the same result.

I used HiveSQL and I notice there are many transaction during this gap. Quite a few in fact, and these are over a significant portion of time (weeks) not in a short period of time that would be the result of a short gap.

image.png

I did some tests querying (multiple) nodes directly using curl and looked through the results and noticed all transactions were reported properly. I also looked at HiveJS and noticed they were all reported properly. This appears limited to Beem only.

Here is the simpliest version of the code I am using to query for the account history.

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()

I have tried multiple nodes and same results, there is no variance in what is returned.

Temporary Solution - If I remove only_ops=['transfer'] and manually filter the ops on my end, I am able to see all operations.

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.png

image.png

I created an issue on Github with similar details to recreate it.

H2
H3
H4
3 columns
2 columns
1 column
7 Comments
Ecency