From 1b53cf6258890461b322cc566e2e03ad4b1cbfb5 Mon Sep 17 00:00:00 2001 From: Michael Vandeberg Date: Tue, 24 Apr 2018 10:52:57 -0500 Subject: [PATCH] Fix error messages --- libraries/chain/steem_evaluator.cpp | 3 +++ libraries/plugins/witness/witness_plugin.cpp | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/libraries/chain/steem_evaluator.cpp b/libraries/chain/steem_evaluator.cpp index b4cf5be836..c8a45d4187 100644 --- a/libraries/chain/steem_evaluator.cpp +++ b/libraries/chain/steem_evaluator.cpp @@ -1531,6 +1531,9 @@ void custom_json_evaluator::do_apply( const custom_json_operation& o ) void custom_binary_evaluator::do_apply( const custom_binary_operation& o ) { database& d = db(); + if( d.is_producing() ) + FC_ASSERT( false, "custom_binary_operation is deprecated" ); + FC_ASSERT( d.has_hardfork( STEEMIT_HARDFORK_0_14__317 ) ); std::shared_ptr< custom_operation_interpreter > eval = d.get_custom_json_evaluator( o.id ); diff --git a/libraries/plugins/witness/witness_plugin.cpp b/libraries/plugins/witness/witness_plugin.cpp index a9c690d833..e97a7bfa1f 100644 --- a/libraries/plugins/witness/witness_plugin.cpp +++ b/libraries/plugins/witness/witness_plugin.cpp @@ -261,15 +261,6 @@ namespace detail flat_set< account_name_type > required; vector other; trx.get_required_authorities( required, required, required, other ); - if( required.size() == 0 ) - { - for( auto& o : trx.operations ) - app::operation_get_impacted_accounts( o, required ); - - if( _db.is_producing() ) - STEEMIT_ASSERT( required.size() > 0, plugin_exception, "Operation must have an impacted account" ); - } - auto trx_size = fc::raw::pack_size(trx); for( const auto& auth : required )