Skip to content

Commit

Permalink
Prevent new replies after discussion is frozen #177
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vandeberg committed Jul 21, 2016
1 parent bc7ecee commit 927e11f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ void comment_evaluator::do_apply( const comment_operation& o )
if ( itr == by_permlink_idx.end() )
{
if( o.parent_author.size() != 0 )
{
FC_ASSERT( parent->root_comment( db() ).allow_replies, "Comment has disabled replies." );
if( db().has_hardfork( STEEMIT_HARDFORK_0_12__177) )
FC_ASSERT( db().calculate_discussion_payout_time( *parent ) != fc::time_point_sec::maximum() );
}

if( db().has_hardfork( STEEMIT_HARDFORK_0_12__176 ) )
{
Expand Down

0 comments on commit 927e11f

Please sign in to comment.