Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,939 Lines • ▼ Show 20 Lines | strUsage += HelpMessageOpt( | ||||
_("Rescan the block chain for missing wallet transactions on startup")); | _("Rescan the block chain for missing wallet transactions on startup")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-salvagewallet", | "-salvagewallet", | ||||
_("Attempt to recover private keys from a corrupt wallet on startup")); | _("Attempt to recover private keys from a corrupt wallet on startup")); | ||||
if (showDebug) { | if (showDebug) { | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-sendfreetransactions", | "-sendfreetransactions", | ||||
strprintf(_("Send transactions as zero-fee transactions if " | strprintf(_("Send transactions as zero-fee transactions if " | ||||
"possible (default: %u)"), | "possible (default: %d)"), | ||||
DEFAULT_SEND_FREE_TRANSACTIONS)); | DEFAULT_SEND_FREE_TRANSACTIONS)); | ||||
} | } | ||||
strUsage += | strUsage += | ||||
HelpMessageOpt("-spendzeroconfchange", | HelpMessageOpt("-spendzeroconfchange", | ||||
strprintf(_("Spend unconfirmed change when sending " | strprintf(_("Spend unconfirmed change when sending " | ||||
"transactions (default: %u)"), | "transactions (default: %d)"), | ||||
DEFAULT_SPEND_ZEROCONF_CHANGE)); | DEFAULT_SPEND_ZEROCONF_CHANGE)); | ||||
strUsage += | strUsage += | ||||
HelpMessageOpt("-txconfirmtarget=<n>", | HelpMessageOpt("-txconfirmtarget=<n>", | ||||
strprintf(_("If paytxfee is not set, include enough fee " | strprintf(_("If paytxfee is not set, include enough fee " | ||||
"so transactions begin confirmation on " | "so transactions begin confirmation on " | ||||
"average within n blocks (default: %u)"), | "average within n blocks (default: %u)"), | ||||
DEFAULT_TX_CONFIRM_TARGET)); | DEFAULT_TX_CONFIRM_TARGET)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-usehd", | "-usehd", | ||||
_("Use hierarchical deterministic key generation (HD) after BIP32. " | _("Use hierarchical deterministic key generation (HD) after BIP32. " | ||||
"Only has effect during wallet creation/first start") + | "Only has effect during wallet creation/first start") + | ||||
" " + strprintf(_("(default: %u)"), DEFAULT_USE_HD_WALLET)); | " " + strprintf(_("(default: %d)"), DEFAULT_USE_HD_WALLET)); | ||||
strUsage += HelpMessageOpt("-upgradewallet", | strUsage += HelpMessageOpt("-upgradewallet", | ||||
_("Upgrade wallet to latest format on startup")); | _("Upgrade wallet to latest format on startup")); | ||||
strUsage += | strUsage += | ||||
HelpMessageOpt("-wallet=<file>", | HelpMessageOpt("-wallet=<file>", | ||||
_("Specify wallet file (within data directory)") + " " + | _("Specify wallet file (within data directory)") + " " + | ||||
strprintf(_("(default: %s)"), DEFAULT_WALLET_DAT)); | strprintf(_("(default: %s)"), DEFAULT_WALLET_DAT)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-walletbroadcast", | "-walletbroadcast", | ||||
_("Make the wallet broadcast transactions") + " " + | _("Make the wallet broadcast transactions") + " " + | ||||
strprintf(_("(default: %u)"), DEFAULT_WALLETBROADCAST)); | strprintf(_("(default: %d)"), DEFAULT_WALLETBROADCAST)); | ||||
strUsage += HelpMessageOpt("-walletnotify=<cmd>", | strUsage += HelpMessageOpt("-walletnotify=<cmd>", | ||||
_("Execute command when a wallet transaction " | _("Execute command when a wallet transaction " | ||||
"changes (%s in cmd is replaced by TxID)")); | "changes (%s in cmd is replaced by TxID)")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-zapwallettxes=<mode>", | "-zapwallettxes=<mode>", | ||||
_("Delete all wallet transactions and only recover those parts of the " | _("Delete all wallet transactions and only recover those parts of the " | ||||
"blockchain through -rescan on startup") + | "blockchain through -rescan on startup") + | ||||
" " + _("(1 = keep tx meta data e.g. account owner and payment " | " " + _("(1 = keep tx meta data e.g. account owner and payment " | ||||
"request information, 2 = drop tx meta data)")); | "request information, 2 = drop tx meta data)")); | ||||
if (showDebug) { | if (showDebug) { | ||||
strUsage += HelpMessageGroup(_("Wallet debugging/testing options:")); | strUsage += HelpMessageGroup(_("Wallet debugging/testing options:")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-dblogsize=<n>", | "-dblogsize=<n>", | ||||
strprintf("Flush wallet database activity from memory to disk log " | strprintf("Flush wallet database activity from memory to disk log " | ||||
"every <n> megabytes (default: %u)", | "every <n> megabytes (default: %u)", | ||||
DEFAULT_WALLET_DBLOGSIZE)); | DEFAULT_WALLET_DBLOGSIZE)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-flushwallet", | "-flushwallet", | ||||
strprintf("Run a thread to flush wallet periodically (default: %u)", | strprintf("Run a thread to flush wallet periodically (default: %d)", | ||||
DEFAULT_FLUSHWALLET)); | DEFAULT_FLUSHWALLET)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db " | "-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db " | ||||
"environment (default: %u)", | "environment (default: %d)", | ||||
DEFAULT_WALLET_PRIVDB)); | DEFAULT_WALLET_PRIVDB)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-walletrejectlongchains", | "-walletrejectlongchains", | ||||
strprintf(_("Wallet will not create transactions that violate " | strprintf(_("Wallet will not create transactions that violate " | ||||
"mempool chain limits (default: %u)"), | "mempool chain limits (default: %d)"), | ||||
DEFAULT_WALLET_REJECT_LONG_CHAINS)); | DEFAULT_WALLET_REJECT_LONG_CHAINS)); | ||||
} | } | ||||
return strUsage; | return strUsage; | ||||
} | } | ||||
CWallet *CWallet::CreateWalletFromFile(const std::string walletFile) { | CWallet *CWallet::CreateWalletFromFile(const std::string walletFile) { | ||||
// Needed to restore wallet transaction meta data after -zapwallettxes | // Needed to restore wallet transaction meta data after -zapwallettxes | ||||
▲ Show 20 Lines • Show All 475 Lines • Show Last 20 Lines |