fix reward calculation for blocks in cb/rewards.cpp