diff --git a/libraries/chain/proposal_evaluator.cpp b/libraries/chain/proposal_evaluator.cpp index f3d057fb..83282537 100644 --- a/libraries/chain/proposal_evaluator.cpp +++ b/libraries/chain/proposal_evaluator.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -54,9 +55,21 @@ struct proposal_operation_hardfork_visitor "Parameter extensions are not allowed yet!" ); } - void operator()(const sport_create_operation &v) const { - FC_ASSERT( block_time >= HARDFORK_1000_TIME, "sport_create_operation not allowed yet!" ); - } + void operator()(const graphene::chain::tournament_payout_operation &o) const { + // TODO: move check into tournament_payout_operation::validate after HARDFORK_999_TIME + FC_ASSERT( block_time < HARDFORK_999_TIME, "Not allowed!" ); + } + + void operator()(const graphene::chain::asset_settle_cancel_operation &o) const { + // TODO: move check into asset_settle_cancel_operation::validate after HARDFORK_999_TIME + FC_ASSERT( block_time < HARDFORK_999_TIME, "Not allowed!" ); + } + + void operator()(const graphene::chain::account_create_operation &aco) const { + // TODO: remove after HARDFORK_999_TIME + if (block_time < HARDFORK_999_TIME) + FC_ASSERT( !aco.extensions.value.affiliate_distributions.valid(), "Affiliate reward distributions not allowed yet" ); + } void operator()(const sport_update_operation &v) const { FC_ASSERT( block_time >= HARDFORK_1000_TIME, "sport_update_operation not allowed yet!" );