1
0
Fork 0
forked from lthn/blockchain

minor improvement (log)

This commit is contained in:
sowle 2025-04-03 23:32:21 +03:00
parent c7f0106bf0
commit 7736199189
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -908,7 +908,9 @@ bool blockchain_storage::purge_transaction_from_blockchain(const crypto::hash& t
bool res_erase = m_db_transactions.erase_validate(tx_id);
CHECK_AND_ASSERT_MES_NO_RET(res_erase, "serious internal error: m_transactions.erase_validate() failed for tx " << tx_id);
LOG_PRINT_L1("transaction " << tx_id << " from block @ " << tx_res_ptr->m_keeper_block_height << (added_to_the_pool ? " was removed from blockchain history -> to the pool" : " was removed from blockchain history"));
LOG_PRINT_L1("transaction " << tx_id << " from block @ " << tx_res_ptr->m_keeper_block_height <<
(added_to_the_pool ? " was removed from blockchain history -> to the pool" : " was removed from blockchain history") <<
((res_pop_gi && res_erase) ? "" : " WITH ERRORS (see above)"));
return res_pop_gi && res_erase;
}