Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 719 Lines • ▼ Show 20 Lines | if (showDebug) { | ||||
DEFAULT_MAX_SCRIPT_CACHE_SIZE)); | DEFAULT_MAX_SCRIPT_CACHE_SIZE)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-maxtipage=<n>", | "-maxtipage=<n>", | ||||
strprintf("Maximum tip age in seconds to consider node in initial " | strprintf("Maximum tip age in seconds to consider node in initial " | ||||
"block download (default: %u)", | "block download (default: %u)", | ||||
DEFAULT_MAX_TIP_AGE)); | DEFAULT_MAX_TIP_AGE)); | ||||
} | } | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-excesseutxocharge=<amt>", | |||||
strprintf(_("Fees (in %s/kB) to charge per utxo created for" | |||||
"relaying, and mining (default: %s)"), | |||||
CURRENCY_UNIT, FormatMoney(DEFAULT_UTXO_FEE))); | |||||
strUsage += HelpMessageOpt( | |||||
"-minrelaytxfee=<amt>", | "-minrelaytxfee=<amt>", | ||||
strprintf( | strprintf( | ||||
_("Fees (in %s/kB) smaller than this are considered zero fee for " | _("Fees (in %s/kB) smaller than this are considered zero fee for " | ||||
"relaying, mining and transaction creation (default: %s)"), | "relaying, mining and transaction creation (default: %s)"), | ||||
CURRENCY_UNIT, FormatMoney(DEFAULT_MIN_RELAY_TX_FEE))); | CURRENCY_UNIT, FormatMoney(DEFAULT_MIN_RELAY_TX_FEE))); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-maxtxfee=<amt>", | "-maxtxfee=<amt>", | ||||
strprintf(_("Maximum total fees (in %s) to use in a single wallet " | strprintf(_("Maximum total fees (in %s) to use in a single wallet " | ||||
▲ Show 20 Lines • Show All 740 Lines • ▼ Show 20 Lines | |||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
RegisterWalletRPCCommands(tableRPC); | RegisterWalletRPCCommands(tableRPC); | ||||
RegisterDumpRPCCommands(tableRPC); | RegisterDumpRPCCommands(tableRPC); | ||||
#endif | #endif | ||||
nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); | nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); | ||||
if (nConnectTimeout <= 0) nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; | if (nConnectTimeout <= 0) nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; | ||||
// Obtain the amount to charge excess UTXO | |||||
if (IsArgSet("-excesseutxocharge")) { | |||||
Amount n(0); | |||||
auto parsed = ParseMoney(GetArg("-excesseutxocharge", ""), n); | |||||
if (!parsed || Amount(0) > n) | |||||
return InitError(AmountErrMsg("excesseutxocharge", | |||||
GetArg("-excesseutxocharge", ""))); | |||||
config.SetExcessUTXOCharge(n); | |||||
} else { | |||||
config.SetExcessUTXOCharge(DEFAULT_UTXO_FEE); | |||||
} | |||||
// Fee-per-kilobyte amount considered the same as "free". If you are mining, | // Fee-per-kilobyte amount considered the same as "free". If you are mining, | ||||
// be careful setting this: if you set it to zero then a transaction spammer | // be careful setting this: if you set it to zero then a transaction spammer | ||||
// can cheaply fill blocks using 1-satoshi-fee transactions. It should be | // can cheaply fill blocks using 1-satoshi-fee transactions. It should be | ||||
// set above the real cost to you of processing a transaction. | // set above the real cost to you of processing a transaction. | ||||
if (IsArgSet("-minrelaytxfee")) { | if (IsArgSet("-minrelaytxfee")) { | ||||
Amount n(0); | Amount n(0); | ||||
auto parsed = ParseMoney(GetArg("-minrelaytxfee", ""), n); | auto parsed = ParseMoney(GetArg("-minrelaytxfee", ""), n); | ||||
if (!parsed || Amount(0) == n) | if (!parsed || Amount(0) == n) | ||||
▲ Show 20 Lines • Show All 725 Lines • Show Last 20 Lines |