Closed sderuiter closed 2 years ago
This is a "create account" transaction. https://dashboard.mainnet.concordium.software/lookup/0432ef98e3d1bb5cc479983bcf2b102f0bcafe3842df902086877005959404b2
As it is, these do not affect the balance of the account (they create the account though) so are not listed in the ATI table.
I believe that is also how the node's transaction logging behaves.
Hmm, unfortunate decision in my opinion, but a decision nonetheless. Thanks.
Just to confirm:
Hmm, unfortunate decision in my opinion, but a decision nonetheless. Thanks.
It was a decision made long ago (3 years) in the node's logging implementation and the current version of the logger is intended to replicate the behaviour of the node so we can transition to it gradually without affecting services that depend on the output of the logging.
The reason this decision was made in the node is that it falls out naturally from the fact that "account creation" transactions and "account transactions" are two different categories of transactions and they are handled quite differently. In particular account creation transactions do not affect any balances.
So this is the history. I can see why including them in the log would make sense as well and it would not be hard to modify the logger to do this. Alternatively not include the transaction in the summaries table. Which one of these would fit your needs best?
In addition to account creations, update instructions will also be like this, that is, in the summaries table, but not corresponding entry in the ATI or CTI tables.
Thank you. No need to change the logger. If I can search for the 'missing' txs myself, that's enough for me.
I'm currently adding 'credentialDeploymentTransaction' summaries myself. What is the 'type' for the update tx you mentioned was also missing from ati and cti?
All of the transactions in this "Update" category http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/enum.BlockItemSummaryDetails.html#variant.Update
So concretely all of these types http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/enum.UpdateType.html
Thank you. I would classify all of these update types as not affecting individual accounts, so no need for me to add them.
Can this issue be closed, or do you think there are any actions to follow up our discussion with?
Bug Description It appears as if the transaction service is missing transactions? I've found at least 1 case where a row is found in
summaries
table, but no corresponding row inati
table referring back to said summary.Steps to Reproduce Execute the following query:
This gives:
whereby
158
is the height of the block where this transaction is finalised and455
is thesummary_id
for theati
table.Now, trying to find this
summary
in theati
table:Results in:
Expected Result I would expect the
summary
of455
to be present in theati
table.Actual Result Not there.
Hence, using the preferred query by joining the
ati
table to thesummaries
table using:FROM ati LEFT JOIN summaries ON ati.summary = summaries.id
will not produce this transaction.