CWallet* pwalletMain;
CClientUIInterface uiInterface;
std::string strWalletFileName;
+bool fConfChange;
unsigned int nNodeLifespan;
unsigned int nDerivationMethodIndex;
unsigned int nMinerSleep;
" -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n" +
" -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n" +
" -walletnotify=<cmd> " + _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)") + "\n" +
+ " -confchange " + _("Require a confirmations for change (default: 0)") + "\n" +
" -upgradewallet " + _("Upgrade wallet to latest format") + "\n" +
" -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n" +
" -rescan " + _("Rescan the block chain for missing wallet transactions") + "\n" +
InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction."));
}
+ fConfChange = GetBoolArg("-confchange", false);
+
if (mapArgs.count("-mininput"))
{
if (!ParseMoney(mapArgs["-mininput"], nMinimumInputValue))
#include "walletdb.h"
extern bool fWalletUnlockMintOnly;
+extern bool fConfChange;
class CAccountingEntry;
class CWalletTx;
class CReserveKey;
return true;
if (!IsFromMe()) // using wtx's cached debit
return false;
+ if (fConfChange)
+ return false;
// If no confirmations but it's from us, we can still
// consider it confirmed if all dependencies are confirmed
vWorkQueue.push_back(mapPrev[txin.prevout.hash]);
}
}
+
return true;
}