aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-11 12:49:33 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-02-11 12:49:33 +0100
commit1bbca249b202c4802cc2c4d4de4a26e6392b4d92 (patch)
tree5a255f3765474b8e1476fdf4a821580309853e1e /src/init.cpp
parentd5fa3eff03b4e58fc46d72599904231408cbce80 (diff)
downloadbitcoin-1bbca249b202c4802cc2c4d4de4a26e6392b4d92.tar.xz
Add option to avoid spending unconfirmed change
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4d16f46968..12fb129073 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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