forked from lthn/blockchain
added more logs to multiasset test debug 2
This commit is contained in:
parent
64ff2cb641
commit
9f26c35630
3 changed files with 16 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ namespace currency
|
|||
FIELD(amount_to_provide)
|
||||
FIELD(unlock_time)
|
||||
FIELD(htlc_options)
|
||||
FIELD(asset_id)
|
||||
END_SERIALIZE()
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -4185,6 +4185,10 @@ void wallet2::publish_new_asset(const currency::asset_descriptor_base& asset_inf
|
|||
ctp.dsts = destinations;
|
||||
ctp.extra.push_back(asset_reg_info);
|
||||
|
||||
//&&&&&
|
||||
LOG_PRINT_MAGENTA("ctp.dsts[0].asset_id:" << ctp.dsts[0].asset_id << ", ctp.dsts[1].asset_id:" << ctp.dsts[1].asset_id);
|
||||
|
||||
|
||||
finalized_tx ft = AUTO_VAL_INIT(ft);
|
||||
this->transfer(ctp, ft, true, nullptr);
|
||||
result_tx = ft.tx;
|
||||
|
|
@ -5747,6 +5751,13 @@ void wallet2::prepare_transaction(construct_tx_param& ctp, currency::finalize_tx
|
|||
prepare_tx_destinations(needed_money_map, static_cast<detail::split_strategy_id_t>(ctp.split_strategy_id), ctp.dust_policy, ctp.dsts, ftp.prepared_destinations);
|
||||
TIME_MEASURE_FINISH_MS(prepare_tx_destinations_time);
|
||||
|
||||
//&&&&&
|
||||
for (const auto d : ftp.prepared_destinations)
|
||||
{
|
||||
LOG_PRINT_MAGENTA("[prepare_tx_destinations] amount:" << d.amoumt << ", asset_id:" << d.asset_id);
|
||||
}
|
||||
|
||||
|
||||
if (ctp.mark_tx_as_complete && !ftp.sources.empty())
|
||||
ftp.sources.back().separately_signed_tx_complete = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -77,6 +77,10 @@ bool multiassets_basic_test::c1(currency::core& c, size_t ev_index, const std::v
|
|||
destinations[1].addr.push_back(alice_wlt->get_account().get_public_address());
|
||||
destinations[1].amount = AMOUNT_ASSETS_TO_TRANSFER_MULTIASSETS_BASIC;
|
||||
destinations[1].asset_id = currency::ffff_hash;
|
||||
|
||||
LOG_PRINT_MAGENTA("destinations[0].asset_id:" << destinations[0].asset_id);
|
||||
LOG_PRINT_MAGENTA("destinations[1].asset_id:" << destinations[1].asset_id);
|
||||
LOG_PRINT_MAGENTA("currency::ffff_hash:" << currency::ffff_hash);
|
||||
|
||||
currency::transaction tx = AUTO_VAL_INIT(tx);
|
||||
crypto::hash asset_id = currency::null_hash;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue