From 62f0f184b4b2bac877f7a3fc17c1dd609a387cd6 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 10 Jun 2015 22:37:37 +0900 Subject: [PATCH] Avoid large dumps. --- libethereum/Client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index 029a0041c..396ef409e 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -125,8 +125,6 @@ void Client::onBadBlock(Exception& _ex) // general block failure. } - if (string const* vmtraceJson = boost::get_error_info(_ex)) - Json::Reader().parse(*vmtraceJson, report["hints"]["vmtrace"]); if (vector const* receipts = boost::get_error_info(_ex)) { report["hints"]["receipts"] = Json::arrayValue; @@ -178,6 +176,9 @@ void Client::onBadBlock(Exception& _ex) cwarn << ("Report: \n" + Json::StyledWriter().write(report)); + if (string const* vmtraceJson = boost::get_error_info(_ex)) + Json::Reader().parse(*vmtraceJson, report["hints"]["vmtrace"]); + if (!m_sentinel.empty()) { jsonrpc::HttpClient client(m_sentinel);