Skip to content

Commit

Permalink
Merge pull request steemit#2377 from steemit/foobar
Browse files Browse the repository at this point in the history
Read the other commit message
  • Loading branch information
Michael Vandeberg authored Apr 24, 2018
2 parents cd621ff + 5c0491c commit 7b4ae27
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libraries/plugins/witness/witness_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ namespace detail {
for( auto& o : trx.operations )
app::operation_get_impacted_accounts( o, required );

STEEM_ASSERT( required.size() > 0, plugin_exception, "Operation must have an impacted account" );
if( _db.is_producing() )
STEEM_ASSERT( required.size() > 0, plugin_exception, "Operation must have an impacted account" );
}

for( const auto& auth : required )
Expand Down Expand Up @@ -280,9 +281,10 @@ namespace detail {
app::operation_get_impacted_accounts( note.op, impacted );

for( auto& account : impacted )
STEEM_ASSERT( _dupe_customs.insert( account ).second, plugin_exception,
"Account ${a} already submitted a custom json operation this block.",
("a", account) );
if( _db.is_producing() )
STEEM_ASSERT( _dupe_customs.insert( account ).second, plugin_exception,
"Account ${a} already submitted a custom json operation this block.",
("a", account) );
}
break;
default:
Expand Down

0 comments on commit 7b4ae27

Please sign in to comment.