Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vandeberg committed Apr 24, 2018
1 parent c60b4bd commit 1b53cf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
9 changes: 0 additions & 9 deletions libraries/plugins/witness/witness_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,6 @@ namespace detail
flat_set< account_name_type > required; vector<authority> 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 )
Expand Down

0 comments on commit 1b53cf6

Please sign in to comment.