Fix a crash in which we tried to log a proposal object that may have been deleted.

Also, fix a place where logged the letter e instead of the exception it represented
This commit is contained in:
Eric Frias 2017-08-30 17:15:50 -04:00
parent 629e6c7be7
commit 6a9b2a0d04

View file

@ -286,13 +286,13 @@ processed_transaction database::push_proposal(const proposal_object& proposal)
{ {
_applied_ops.resize( old_applied_ops_size ); _applied_ops.resize( old_applied_ops_size );
} }
elog( "e", ("e",e.to_detail_string() ) ); edump((e));
throw; throw;
} }
ptrx.operation_results = std::move(eval_state.operation_results); ptrx.operation_results = std::move(eval_state.operation_results);
return ptrx; return ptrx;
} FC_CAPTURE_AND_RETHROW( (proposal) ) } } FC_CAPTURE_AND_RETHROW() }
signed_block database::generate_block( signed_block database::generate_block(
fc::time_point_sec when, fc::time_point_sec when,