Payout to beneficiaries not included in post payout value
Let's see example: https://peakd.com/hive-194913/@badge-696969/hotshots--52223
The post payout value displayed at the end is 14.483 HBD
, and that is because such value is returned from Hivemind. Actual amount earned by the post is 29.019 HBD
as indicated by the related comment_reward_operation
:
Hivemind incorrectly stores sum of total_payout_value
(which actually holds author's portion of reward) and curator_payout_value
as payout
instead of just storing payout
value from the vop. See https://gitlab.syncad.com/hive/hivemind/-/blob/master/hive/indexer/posts.py#L281
payout = sum([sbd_amount(total_payout_value), sbd_amount(curator_payout_value)])
The issue seems trivial to fix, however we first need some tests to cover the case (first mainnet posts with beneficiaries show up after 10M blocks so we'll need to add mocks for 5M tests).