Skip to content

Commit

Permalink
#801 Adjust spacing, review get_discussion_by_cashout filter
Browse files Browse the repository at this point in the history
  • Loading branch information
NateBrune committed Apr 25, 2017
1 parent 761e0ca commit 38f8079
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/app/database_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.cashout_time <= c.created; });
return get_discussions( query, tag, parent, tidx, tidx_itr, query.truncate_body, filter_default, []( const comment_api_obj& c ){ return c.net_rshares <= 0; });
});
}

Expand Down
1 change: 0 additions & 1 deletion libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,6 @@ void vote_evaluator::do_apply( const vote_operation& o )
}
});


fc::uint128_t new_rshares = std::max( comment.net_rshares.value, int64_t(0));

/// calculate rshares2 value
Expand Down

0 comments on commit 38f8079

Please sign in to comment.