mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Add option to avoid spending unconfirmed change
This commit is contained in:
@@ -274,6 +274,7 @@ std::string HelpMessage(HelpMessageMode hmm)
|
||||
strUsage += " -upgradewallet " + _("Upgrade wallet to latest format") + "\n";
|
||||
strUsage += " -wallet=<file> " + _("Specify wallet file (within data directory)") + "\n";
|
||||
strUsage += " -walletnotify=<cmd> " + _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)") + "\n";
|
||||
strUsage += " -spendzeroconfchange " + _("Spend unconfirmed change when sending transactions (default: 1)") + "\n";
|
||||
#endif
|
||||
strUsage += "\n" + _("Block creation options:") + "\n";
|
||||
strUsage += " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n";
|
||||
@@ -539,6 +540,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
||||
if (nTransactionFee > 0.25 * COIN)
|
||||
InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction."));
|
||||
}
|
||||
bSpendZeroConfChange = GetArg("-spendzeroconfchange", true);
|
||||
|
||||
strWalletFile = GetArg("-wallet", "wallet.dat");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user