Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,559 Lines • ▼ Show 20 Lines | #endif | ||||
// set above the real cost to you of processing a transaction. | // set above the real cost to you of processing a transaction. | ||||
if (gArgs.IsArgSet("-minrelaytxfee")) { | if (gArgs.IsArgSet("-minrelaytxfee")) { | ||||
Amount n(0); | Amount n(0); | ||||
auto parsed = ParseMoney(gArgs.GetArg("-minrelaytxfee", ""), n); | auto parsed = ParseMoney(gArgs.GetArg("-minrelaytxfee", ""), n); | ||||
if (!parsed || Amount(0) == n) | if (!parsed || Amount(0) == n) | ||||
return InitError(AmountErrMsg("minrelaytxfee", | return InitError(AmountErrMsg("minrelaytxfee", | ||||
gArgs.GetArg("-minrelaytxfee", ""))); | gArgs.GetArg("-minrelaytxfee", ""))); | ||||
// High fee check is done afterward in CWallet::ParameterInteraction() | // High fee check is done afterward in CWallet::ParameterInteraction() | ||||
::minRelayTxFee = CFeeRate(n); | config.SetMinFeePerKB(CFeeRate(n)); | ||||
} else { | |||||
config.SetMinFeePerKB(CFeeRate(DEFAULT_MIN_RELAY_TX_FEE)); | |||||
} | } | ||||
// Sanity check argument for min fee for including tx in block | // Sanity check argument for min fee for including tx in block | ||||
// TODO: Harmonize which arguments need sanity checking and where that | // TODO: Harmonize which arguments need sanity checking and where that | ||||
// happens. | // happens. | ||||
if (gArgs.IsArgSet("-blockmintxfee")) { | if (gArgs.IsArgSet("-blockmintxfee")) { | ||||
Amount n(0); | Amount n(0); | ||||
if (!ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) | if (!ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) | ||||
▲ Show 20 Lines • Show All 726 Lines • Show Last 20 Lines |