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
Inconsistent (missing) "reserve", "treasury" reward in reward table #892
Comments
No, its still needed. The IOHK devops team uses the
The I THINK what is happening is that more than one payment is made from the same pot go to the same address, only the last is actually kept. I am trying to get that confirmed. |
Yes, confirmed for eras before Alonzo. For Alonzo and later they are summed. |
All tables except for one ( I think the best solution here is to document the oddities of these two tables and otherwise leave them as they are. |
Sorry for commenting on this old issue, but I was hoping you could help provide a little clarity. I have found a pre-Alonzo entry (addr_id 1237210 / epoch 285) where the reserve table has two payments, and indeed only the last of those is reflected in the rewards table as per your explanation above. Does the rewards table then provide the actual true representation of what happened on the blockchain with regards to payments made? (i.e. Only one payment was actually made (the latter); The reserve table shows two intended payments on the same epoch, but only one was actioned?) |
@WubbleWobble This should probably be its own issue.
Before Alonzo, only a single payment to any address is allowed per epoch. That would explain what you are seeing. I think this changed in a later epoch. |
@erikd Brilliant - previously I just wasn't sure whether what you were describing pertained to Cardano, or a quirk of db-sync, so this has cleared things up for me. Many thanks! :) |
@WubbleWobble can this be closed now? |
@erikd Yes - thank you (it's already closed?) |
OS
Your OS: Ubuntu 20.04.3 LTS
Versions
cardano-db-sync version: 15a434b
PostgreSQL version: 12.8
Build/Install Method
nix-build -A cardano-db-sync -o db-sync-node
Problem Report
I believe that some "reserve" and "treasury" rewards are missing from reward table. I think the number of rows in reserve table should be equal to the number of rows in the reward table with type = 'reserves'. However, I got different results:
I tried to investigate a bit further and found an example of what's missing. It's the reserve reward from transaction
\xad664478fbff01cdb64d555ab6896c4370c337cda35c416f5c898fb15bcdafd5
:I found the same issue with the treasury reward:
I might be wrong about the stuffs each table tracking. But, if you group all kinds of rewards into the reward table, you can get rid of two tables treasury and reserve, right?
The text was updated successfully, but these errors were encountered: