From 927e11f9c602bc41f0b634c03354f389694f982f Mon Sep 17 00:00:00 2001 From: Michael Vandeberg Date: Thu, 21 Jul 2016 15:17:40 -0400 Subject: [PATCH] Prevent new replies after discussion is frozen #177 --- libraries/chain/steem_evaluator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/chain/steem_evaluator.cpp b/libraries/chain/steem_evaluator.cpp index 49ec93ed69..7fcbdba9b4 100644 --- a/libraries/chain/steem_evaluator.cpp +++ b/libraries/chain/steem_evaluator.cpp @@ -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 ) ) {