Skip to content

Commit

Permalink
AvailableCoins: remove unused "includeZeroValue" flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Aug 8, 2020
1 parent e74dcd8 commit a13c245
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/wallet/rpcwallet.cpp
Expand Up @@ -3194,7 +3194,6 @@ UniValue listunspent(const JSONRPCRequest& request)
false, // include cold staking
ALL_COINS, // coin type
false, // only confirmed
false, // include zero value
false // use IX
);
for (const COutput& out : vecOutputs) {
Expand Down
4 changes: 1 addition & 3 deletions src/wallet/wallet.cpp
Expand Up @@ -2128,7 +2128,6 @@ bool CWallet::AvailableCoins(std::vector<COutput>* pCoins, // --> populates
bool fIncludeColdStaking, // Default: false
AvailableCoinsType nCoinType, // Default: ALL_COINS
bool fOnlyConfirmed, // Default: true
bool fIncludeZeroValue, // Default: false
bool fUseIX // Default: false
) const
{
Expand Down Expand Up @@ -2175,7 +2174,7 @@ bool CWallet::AvailableCoins(std::vector<COutput>* pCoins, // --> populates
if (IsLockedCoin((*it).first, i) && nCoinType != ONLY_10000) continue;

// Check if we should include zero value utxo
if (pcoin->vout[i].nValue <= 0 && !fIncludeZeroValue) continue;
if (pcoin->vout[i].nValue <= 0) continue;

if (fCoinsSelected && !coinControl->fAllowOtherInputs && !coinControl->IsSelected(COutPoint((*it).first, i)))
continue;
Expand Down Expand Up @@ -2569,7 +2568,6 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend,
false, // fIncludeColdStaking
coin_type,
true, // fOnlyConfirmed
false, // fIncludeZeroValue
useIX);

nFeeRet = 0;
Expand Down
1 change: 0 additions & 1 deletion src/wallet/wallet.h
Expand Up @@ -362,7 +362,6 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
bool fIncludeColdStaking = false,
AvailableCoinsType nCoinType = ALL_COINS,
bool fOnlyConfirmed = true,
bool fIncludeZeroValue = false,
bool fUseIX = false
) const;
//! >> Available coins (spending)
Expand Down

0 comments on commit a13c245

Please sign in to comment.