Skip to content
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

[Bug] There is a block where all solution rewards are 0, which is unreasonable #2323

Closed
elderhammer opened this issue Jan 24, 2024 · 2 comments · Fixed by #2410
Closed

[Bug] There is a block where all solution rewards are 0, which is unreasonable #2323

elderhammer opened this issue Jan 24, 2024 · 2 comments · Fixed by #2410
Labels
bug Something isn't working

Comments

@elderhammer
Copy link

🐛 Bug Report

ab1v24j6eqh75v3dgr3fwkgmv7zcun076gcdg8wz58y4c7w3pnufc9sfdahmc
https://aleo123.io/block/1231470

@elderhammer elderhammer added the bug Something isn't working label Jan 24, 2024
@raychu86
Copy link
Contributor

Need to dig deeper and determine what changes are possibly needed, but here are some observations:

It looks like the reason there is 0 puzzle rewards in this block is due to how we are updating the coinbase targets.

If you look at block 1231469, you'll see that we've reached a cumulative_proof_target of 4296788923, which is less than the coinbase_target of block 1231468. However, due to the target adjustment algorithm, the new coinbase target for block 1231469 is less than the cumulative_proof_target.

This means that for block 1231470, our ratio of remaining rewards for that target is 0, thus the empty reward.

@randomsleep
Copy link
Contributor

I submitted some bug reports about the PoW part at HackerOnce several days ago. I think this is a bug of incorrect updating coinbase_target, (report 2315260).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants