-
Notifications
You must be signed in to change notification settings - Fork 160
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
Differences in reward amount between db-sync and Yoroi/Daedalus #689
Comments
Those Yoroi rewards are werid. All the ones for epochs |
My database is not yet fully synced but even for the bits that I do have, I get different results: select reward.epoch_no, pool_hash.view as delegated_pool, reward.amount as lovelace
from reward inner join stake_address on reward.addr_id = stake_address.id
inner join pool_hash on reward.pool_id = pool_hash.id
where stake_address.view = 'stake1uyymg75pvgxr6fl0zx9lcw2wl7te484prt7snt3nzmlh69s6wwpaq'
order by epoch_no asc ;
epoch_no | delegated_pool | lovelace
----------+----------------------------------------------------------+-----------
261 | pool1a4qtpgce7cu6wzc79fx7qrc3938hkl2gf8c2h5jugvm2gnu86l7 | 243760521
262 | pool1a4qtpgce7cu6wzc79fx7qrc3938hkl2gf8c2h5jugvm2gnu86l7 | 211706555
263 | pool1a4qtpgce7cu6wzc79fx7qrc3938hkl2gf8c2h5jugvm2gnu86l7 | 224415164
264 | pool1a4qtpgce7cu6wzc79fx7qrc3938hkl2gf8c2h5jugvm2gnu86l7 | 222162943
265 | pool1a4qtpgce7cu6wzc79fx7qrc3938hkl2gf8c2h5jugvm2gnu86l7 | 375851816
266 | pool1a4qtpgce7cu6wzc79fx7qrc3938hkl2gf8c2h5jugvm2gnu86l7 | 388502524
(6 rows) What version of |
Sorry, there was a copy-paste mistake when i copied the Yoroi Rewards. Here is the correct table:
It seems that your database shows the correct values. So there has to be some issue with mine. The db-sync version i'm running is
The cardano-node version is:
I synced myself. The computer i run both components on is not 100% up and running. From time to time it is switch off for hours and even days (not sure if this is relevant). Is there anything i can do to resync/update my state? |
There is a known issue that can cause incomplete database entries (specifically the
If the current state is busted, unfortunately the only remedy is resyncing from scratch. |
Can this be closed? |
Hi all,
when querying the db-sync rewards table i get reward amounts which are slightly different to the amounts which i see in the Yoroi Wallet or also on PoolTool (i'm aware that the amounts displayed on pooltool are rounded, but the difference is more than just a rounding issue). The rewards in db-sync are on average around 40'000 lovelace lower in db-sync
The following query is used:
This results in:
For the same address the rewards from yoroi are:
When looking at another address i see the same issue. For example the address stake1uymsgwktlset8f0rx7mf07j025jg63p8wlgtux5rx6t9rdgwteesu shows the similar differences. Interesting here is, that the differences only start to show in epoch 235. Epoch 234 and before seem to be in line.
Another issue i saw is that at least in my db-sync database the reward for epoch 273 are missing (for both addresses above).
Thanks for checking this issue!
The text was updated successfully, but these errors were encountered: