1
0
Fork 0
forked from lthn/blockchain

tx json struct made optional

This commit is contained in:
cryptozoidberg 2023-05-19 19:23:31 +02:00
parent 11939bc4b6
commit b6fecfadff
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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++;
}
}