From ace6fa61477396f68e88d043d9d359c60c32d3b2 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:28:51 +0000 Subject: [PATCH] #1750 multiple transactions --- libethereum/Block.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libethereum/Block.cpp b/libethereum/Block.cpp index 9004aec53..53d6135b3 100644 --- a/libethereum/Block.cpp +++ b/libethereum/Block.cpp @@ -819,7 +819,13 @@ ExecutionResult Block::executeHistoricCall( LastBlockHashesFace const& _lh, Tran auto resultReceipt = m_state.mutableHistoricState().execute( envInfo, *m_sealEngine, _t, skale::Permanence::Uncommitted, onOp ); HistoricState stateAfter( m_state.mutableHistoricState() ); - _tracer->finalizeAndPrintTrace( resultReceipt.first, stateBefore, stateAfter ); + try { + _tracer->finalizeAndPrintTrace( resultReceipt.first, stateBefore, stateAfter ); + } catch ( std::exception& e ) { + throw dev::eth::VMTracingError( + std::string( "Exception doing trace for transaction index:" ) + + std::to_string( _transactionIndex ) + ":" + e.what() ); + } return resultReceipt.first; } else { auto resultReceipt = m_state.mutableHistoricState().execute(