Open n1tranquilla opened 1 month ago
The data is probably right, just not presented correctly or in the right place. We need to rethink our total_num_*
implementations and see if they belong somewhere else.
This datum is about the total number of canonical blocks, similarly for the others. What are you expecting? Number of (canonical/supercharged/etc) blocks bounded by the query?
These total_num_*
quantities probably belong in the summary
These totalnum* quantities probably belong in the summary
Yes, as a user in the front end, I expected the query for that block height to give me the correct value for total_num_*
and was surprised by the result, so I think your thoughts referenced above are on the right track. As a real-life user, I thought this data was "wrong", but I know enough to know it just belongs in a different place in the API 😉
I'll assign back to you for now.
Okay. This sort of response requires some additional support in the database. We'll need to keep CFs for block height -> number of * blocks at that height
in order to answer the general query.
@n1tranquilla where does this issue stand?
This is a presentation issue with the data. It's not strictly wrong, it's just presented in a way that it might be used improperly. I think we need to deprioritize this issue. Moving to bottom of backlog.
Here is a query where we are limiting to the first 6k blocks, however the result for
total_num_blocks
is the length of the entire blockchain.Query:
Variables:
Response: