Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/init.cpp
Show All 21 Lines | strUsage += HelpMessageOpt( | ||||
"-keypool=<n>", strprintf(_("Set key pool size to <n> (default: %u)"), | "-keypool=<n>", strprintf(_("Set key pool size to <n> (default: %u)"), | ||||
DEFAULT_KEYPOOL_SIZE)); | DEFAULT_KEYPOOL_SIZE)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-fallbackfee=<amt>", | "-fallbackfee=<amt>", | ||||
strprintf(_("A fee rate (in %s/kB) that will be used when fee " | strprintf(_("A fee rate (in %s/kB) that will be used when fee " | ||||
"estimation has insufficient data (default: %s)"), | "estimation has insufficient data (default: %s)"), | ||||
CURRENCY_UNIT, FormatMoney(DEFAULT_FALLBACK_FEE))); | CURRENCY_UNIT, FormatMoney(DEFAULT_FALLBACK_FEE))); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-mintxfee=<amt>", | |||||
strprintf(_("Fees (in %s/kB) smaller than this are considered zero fee " | |||||
"for transaction creation (default: %s)"), | |||||
CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MINFEE))); | |||||
strUsage += HelpMessageOpt( | |||||
"-paytxfee=<amt>", | "-paytxfee=<amt>", | ||||
strprintf( | strprintf( | ||||
_("Fee (in %s/kB) to add to transactions you send (default: %s)"), | _("Fee (in %s/kB) to add to transactions you send (default: %s)"), | ||||
CURRENCY_UNIT, FormatMoney(payTxFee.GetFeePerK()))); | CURRENCY_UNIT, FormatMoney(payTxFee.GetFeePerK()))); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-rescan", | "-rescan", | ||||
_("Rescan the block chain for missing wallet transactions on startup")); | _("Rescan the block chain for missing wallet transactions on startup")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | bool WalletParameterInteraction() { | ||||
} | } | ||||
if (minRelayTxFee.GetFeePerK() > HIGH_TX_FEE_PER_KB) { | if (minRelayTxFee.GetFeePerK() > HIGH_TX_FEE_PER_KB) { | ||||
InitWarning( | InitWarning( | ||||
AmountHighWarn("-minrelaytxfee") + " " + | AmountHighWarn("-minrelaytxfee") + " " + | ||||
_("The wallet will avoid paying less than the minimum relay fee.")); | _("The wallet will avoid paying less than the minimum relay fee.")); | ||||
} | } | ||||
if (gArgs.IsArgSet("-mintxfee")) { | |||||
Amount n = Amount::zero(); | |||||
auto parsed = ParseMoney(gArgs.GetArg("-mintxfee", ""), n); | |||||
if (!parsed || Amount::zero() == n) { | |||||
return InitError( | |||||
AmountErrMsg("mintxfee", gArgs.GetArg("-mintxfee", ""))); | |||||
} | |||||
if (n > HIGH_TX_FEE_PER_KB) { | |||||
InitWarning(AmountHighWarn("-mintxfee") + " " + | |||||
_("This is the minimum transaction fee you pay on " | |||||
"every transaction.")); | |||||
} | |||||
CWallet::minTxFee = CFeeRate(n); | |||||
} | |||||
if (gArgs.IsArgSet("-fallbackfee")) { | if (gArgs.IsArgSet("-fallbackfee")) { | ||||
Amount nFeePerK = Amount::zero(); | Amount nFeePerK = Amount::zero(); | ||||
if (!ParseMoney(gArgs.GetArg("-fallbackfee", ""), nFeePerK)) { | if (!ParseMoney(gArgs.GetArg("-fallbackfee", ""), nFeePerK)) { | ||||
return InitError( | return InitError( | ||||
strprintf(_("Invalid amount for -fallbackfee=<amount>: '%s'"), | strprintf(_("Invalid amount for -fallbackfee=<amount>: '%s'"), | ||||
gArgs.GetArg("-fallbackfee", ""))); | gArgs.GetArg("-fallbackfee", ""))); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |