1
0
Fork 0
forked from lthn/blockchain

wallet2: fix for a rare bug in asset deployment that occurs when there are few ZC outputs

This commit is contained in:
sowle 2023-06-15 20:06:05 +02:00
parent 5620e453b6
commit dd80d202ad
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -4499,6 +4499,7 @@ void wallet2::deploy_new_asset(const currency::asset_descriptor_base& asset_info
construct_tx_param ctp = get_default_construct_tx_param();
ctp.dsts = destinations;
ctp.extra.push_back(asset_reg_info);
ctp.need_at_least_1_zc = true;
finalized_tx ft = AUTO_VAL_INIT(ft);
this->transfer(ctp, ft, true, nullptr);