forked from lthn/blockchain
tx json struct made optional
This commit is contained in:
parent
11939bc4b6
commit
b6fecfadff
1 changed files with 4 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue