snarkVM icon indicating copy to clipboard operation
snarkVM copied to clipboard

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

Open elderhammer opened this issue 1 year ago • 2 comments

🐛 Bug Report

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

elderhammer avatar Jan 24 '24 14:01 elderhammer

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.

raychu86 avatar Jan 25 '24 01:01 raychu86

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).

randomsleep avatar Jan 25 '24 01:01 randomsleep