You are viewing a single comment's thread from:

RE: Proposal to change reward processing and voting logic

in #steem9 years ago

Apparently, I messed up my GitHub links in the OP by linking to master rather than a specific commit.

I don't want to edit the original post and lose upvotes (by the way, this proposal if implemented could mitigate many issues with allowing post edits to not clear upvotes because it enables a vote update mechanism). Also, steemit.com has not yet enabled the diff/patch system. So I will just post a fixed version of just the code update section in the OP:

This line would be replaced with:

return 0;

These two lines would be replaced with:

auto reward_tokens = ( cur.net_rshares > 0 ) ? 
                        claim_rshare_reward( cur.net_rshares ) : 0;
if ( cur.net_rshares > 0 && reward_tokens != 0 ) {

This line would be replaced with:

if ( c.net_rshares > 0 && reward_tokens != 0 )

And these lines would be wrapped in an if statement:

if ( reward_tokens != 0 ) {
   <Lines 1292 to 1298 go here>
}
Sort:  

Are you still working on it?