From dd80d202add5e7eb7ec110d198fd86abc922982c Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 15 Jun 2023 20:06:05 +0200 Subject: [PATCH] wallet2: fix for a rare bug in asset deployment that occurs when there are few ZC outputs --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 4b93bf73..71f859d0 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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);