From ca2d72ae8b747f417de95f3cfa70e2e55325a688 Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Wed, 27 Jul 2022 08:36:39 -0700 Subject: [PATCH] elements: Fix build by removing newly-added assertion from upstream that doesn't make sense with assets --- src/wallet/spend.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 36516ab5b7..e0912d4acf 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -1385,10 +1385,6 @@ bool CWallet::CreateTransactionInternal( fee_needed = coin_selection_params.m_effective_feerate.GetFee(nBytes); } - // The only time that fee_needed should be less than the amount available for fees (in change_and_fee - change_amount) is when - // we are subtracting the fee from the outputs. If this occurs at any other time, it is a bug. - assert(coin_selection_params.m_subtract_fee_outputs || fee_needed <= change_and_fee - change_amount); - // Update nFeeRet in case fee_needed changed due to dropping the change output if (fee_needed <= map_change_and_fee.at(policyAsset) - change_amount) { nFeeRet = map_change_and_fee.at(policyAsset) - change_amount;