diff --git a/src/wallet/rpc/elements.cpp b/src/wallet/rpc/elements.cpp index dca6d04fd2..9a7cc98952 100644 --- a/src/wallet/rpc/elements.cpp +++ b/src/wallet/rpc/elements.cpp @@ -1359,7 +1359,6 @@ static CTransactionRef SendGenerationTransaction(const CScript& asset_script, co vecSend.push_back(recipient); } - CAmount nFeeRequired; constexpr int RANDOM_CHANGE_POSITION = -1; bilingual_str error; FeeCalculation fee_calc_out; @@ -1370,7 +1369,6 @@ static CTransactionRef SendGenerationTransaction(const CScript& asset_script, co if (!txr) { throw JSONRPCError(RPC_WALLET_ERROR, error.original); } - nFeeRequired = (*txr).fee; mapValue_t map_value; pwallet->CommitTransaction((*txr).tx, std::move(map_value), {} /* orderForm */, &blind_details); diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 399120cc83..7ac0083e9c 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -327,8 +327,6 @@ CoinsResult AvailableCoins(const CWallet& wallet, CAmount outValue = wtx.GetOutputValueOut(wallet, i); CAsset asset = wtx.GetOutputAsset(wallet, i); - uint256 bfValue = wtx.GetOutputAmountBlindingFactor(wallet, i); - uint256 bfAsset = wtx.GetOutputAssetBlindingFactor(wallet, i); if (asset_filter && asset != *asset_filter) { continue; }