From 4ac8070e9354eb33a53d8f2bfcb85e9882d49762 Mon Sep 17 00:00:00 2001 From: boostmultifruit Date: Mon, 12 Aug 2019 13:51:01 +0300 Subject: [PATCH] Fix total_comment_reward_operation curator payout #1374 --- libraries/chain/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/chain/database.cpp b/libraries/chain/database.cpp index 012caba16c..b0917ea51a 100644 --- a/libraries/chain/database.cpp +++ b/libraries/chain/database.cpp @@ -2447,7 +2447,7 @@ namespace golos { namespace chain { // pay needed claim + rest unclaimed tokens (close to zero value) to curator with greates weight // BTW: it has to be unclaimed_rewards.value not heaviest_vote_after_auw_weight + unclaimed_rewards.value, coz // unclaimed_rewards already contains this. - actual_rewards = pay_curator(*heaviest_itr->vote, unclaimed_rewards.value, c.comment.author, to_string(c.comment.permlink)); + actual_rewards += pay_curator(*heaviest_itr->vote, unclaimed_rewards.value, c.comment.author, to_string(c.comment.permlink)); unclaimed_rewards = 0; } }