1
0
Fork 0
forked from lthn/blockchain

added more logs to multiasset test debug

This commit is contained in:
cryptozoidberg 2022-10-12 18:55:50 +02:00
parent cebad7aab3
commit 64ff2cb641
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 4 additions and 0 deletions

View file

@ -1948,9 +1948,11 @@ namespace currency
std::vector<tx_destination_entry> shuffled_dsts(destinations);
if (asset_id_for_destinations != currency::null_hash)
{
LOG_PRINT_MAGENTA("[Asset descriptor operation]: shuffled_dsts.size()=" << shuffled_dsts.size(), LOG_LEVEL_0);
//must be asset publication
for (auto& item : shuffled_dsts)
{
LOG_PRINT_MAGENTA("[Asset descriptor operation]: item.asset_id: " << item.asset_id << ", amount: " << item.amount, LOG_LEVEL_0);
if (item.asset_id == currency::ffff_hash)
{
item.asset_id = asset_id_for_destinations;
@ -1961,6 +1963,7 @@ namespace currency
pado->descriptor.current_supply = amount_of_assets;
//TODO: temporary
summary_inputs_money += amount_of_assets;
LOG_PRINT_MAGENTA("[Asset descripto operation]: amount_of_assets: " << amount_of_assets << ", summary_inputs_money: " << summary_inputs_money, LOG_LEVEL_0);
}

View file

@ -463,6 +463,7 @@ namespace tools
ss << currency::get_account_address_as_str(a) << ";";
}
ss << " anount: " << currency::print_money(dst.amount);
ss << " asset_id: " << dst.asset_id;
}
ss << "\nunlock_time: " << m_unlock_time;