Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/EOSIO/eos
Browse files Browse the repository at this point in the history
  • Loading branch information
nsjames committed Jun 16, 2018
2 parents 9dc07d4 + c9b7a24 commit c67af69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,9 @@ struct controller_impl {
EOS_ASSERT( false, block_validate_exception, "encountered unexpected receipt type" );
}

if( trace && trace->except ) {
bool transaction_failed = trace && trace->except;
bool transaction_can_fail = receipt.status == transaction_receipt_header::hard_fail && receipt.trx.contains<transaction_id_type>();
if( transaction_failed && !transaction_can_fail) {
edump((*trace));
throw *trace->except;
}
Expand Down

0 comments on commit c67af69

Please sign in to comment.