Skip to content

Commit

Permalink
Set comment default cashout time on creation steemit#177
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vandeberg committed Jul 20, 2016
1 parent 9e14ae1 commit f25b642
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ void comment_evaluator::do_apply( const comment_operation& o )
com.created = com.last_update;
com.active = com.last_update;
com.last_payout = fc::time_point_sec::min();
com.cashout_time = fc::time_point_sec::maximum();
com.cashout_time = db().has_hardfork( STEEMIT_HARDFORK_0_12__177 ) ?
db().head_block_time() + STEEMIT_CASHOUT_WINDOW_SECONDS :
db().head_block_time() + STEEMIT_CASHOUT_WINDOW_SECONDS_PRE_HF12;
com.max_cashout_time = fc::time_point_sec::maximum();
com.reward_weight = reward_weight;

Expand Down

0 comments on commit f25b642

Please sign in to comment.