New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#801 remove children_rshares2 from consensus #1027
Conversation
On reindex
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not reindex
…nd undo regression from removing total_reward_shares2
libraries/app/database_api.cpp
Outdated
@@ -1526,7 +1526,7 @@ vector<discussion> database_api::get_discussions_by_cashout( const discussion_qu | |||
const auto& tidx = my->_db.get_index<tags::tag_index>().indices().get<tags::by_cashout>(); | |||
auto tidx_itr = tidx.lower_bound( boost::make_tuple( tag, fc::time_point::now() - fc::minutes(60) ) ); | |||
|
|||
return get_discussions( query, tag, parent, tidx, tidx_itr, query.truncate_body, []( const comment_api_obj& c ){ return c.children_rshares2 <= 0; } ); | |||
return get_discussions( query, tag, parent, tidx, tidx_itr, query.truncate_body, []( const comment_api_obj& c ) { return c.cashout_time <= c.created; }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lambda argument is a filter. If the filter lambda returns true then the comment is not returned. The previous filter was to remove all comments whose discussion had more negative rshares.
I would pass in filter_default
for the filter arg and then make the exit arg []( const comment_api_obj& c ){ return c.net_rshares <= 0; }
to stop returning results on negative payout posts.
libraries/chain/steem_evaluator.cpp
Outdated
@@ -1553,12 +1552,14 @@ void vote_evaluator::do_apply( const vote_operation& o ) | |||
} | |||
}); | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert the line spacing changes in this file.
No description provided.