Skip to content

Commit

Permalink
Remove now unused SendMoneyToDestinationWithMinimumBalance() function
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrossignol committed Aug 5, 2020
1 parent 2afb073 commit 0345ccd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/wallet/wallet.cpp
Expand Up @@ -1973,21 +1973,6 @@ string CWallet::SendMoney(CScript scriptPubKey, int64_t nValue, CWalletTx& wtxNe
return "";
}




string CWallet::SendMoneyToDestinationWithMinimumBalance(const CTxDestination& address, int64_t nValue, int64_t nMinimumBalanceRequired, CWalletTx& wtxNew)
{
// Check amount
if (nValue + nTransactionFee > GetBalance()) return _("Insufficient funds");
if (GetBalance() < nMinimumBalanceRequired) return _("Balance too low to create a smart contract.");
CScript scriptPubKey;
scriptPubKey.SetDestination(address);
return SendMoney(scriptPubKey, nValue, wtxNew, false);
}



string CWallet::SendMoneyToDestination(const CTxDestination& address, int64_t nValue, CWalletTx& wtxNew, bool fAskFee)
{
// Check amount
Expand Down
1 change: 0 additions & 1 deletion src/wallet/wallet.h
Expand Up @@ -311,7 +311,6 @@ class CWallet : public CCryptoKeyStore

std::string SendMoney(CScript scriptPubKey, int64_t nValue, CWalletTx& wtxNew, bool fAskFee=false);
std::string SendMoneyToDestination(const CTxDestination &address, int64_t nValue, CWalletTx& wtxNew, bool fAskFee=false);
std::string SendMoneyToDestinationWithMinimumBalance(const CTxDestination& address, int64_t nValue, int64_t nMinimumBalanceRequired, CWalletTx& wtxNew);

bool NewKeyPool();
bool TopUpKeyPool(unsigned int nSize = 0);
Expand Down

0 comments on commit 0345ccd

Please sign in to comment.