From b6fecfadff6f31f98032c803da7e96500e91c52f Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 19 May 2023 19:23:31 +0200 Subject: [PATCH] tx json struct made optional --- tests/core_tests/chaingen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index 6384ea14..a1c2d24a 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -171,7 +171,10 @@ void test_generator::add_block_info(const block_info& bi) if (it != bi.m_transactions.end()) { - ss_tx_hashes << obj_to_json_str(*it) << ENDL; + if (log_space::get_set_log_detalisation_level() >= LOG_LEVEL_1) + { + ss_tx_hashes << obj_to_json_str(*it) << ENDL; + } it++; } }