Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,317 Lines • ▼ Show 20 Lines | if (gArgs.IsArgSet("-mintxfee")) { | ||||
warnings.push_back(AmountHighWarn("-mintxfee") + Untranslated(" ") + | warnings.push_back(AmountHighWarn("-mintxfee") + Untranslated(" ") + | ||||
_("This is the minimum transaction fee you pay " | _("This is the minimum transaction fee you pay " | ||||
"on every transaction.")); | "on every transaction.")); | ||||
} | } | ||||
walletInstance->m_min_fee = CFeeRate(n); | walletInstance->m_min_fee = CFeeRate(n); | ||||
} | } | ||||
if (gArgs.IsArgSet("-maxapsfee")) { | if (gArgs.IsArgSet("-maxapsfee")) { | ||||
const std::string max_aps_fee{gArgs.GetArg("-maxapsfee", "")}; | |||||
Amount n = Amount::zero(); | Amount n = Amount::zero(); | ||||
if (gArgs.GetArg("-maxapsfee", "") == "-1") { | if (max_aps_fee == "-1") { | ||||
n = -1 * SATOSHI; | n = -1 * SATOSHI; | ||||
} else if (!ParseMoney(gArgs.GetArg("-maxapsfee", ""), n)) { | } else if (!ParseMoney(max_aps_fee, n)) { | ||||
error = AmountErrMsg("maxapsfee", gArgs.GetArg("-maxapsfee", "")); | error = AmountErrMsg("maxapsfee", max_aps_fee); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
if (n > HIGH_APS_FEE) { | if (n > HIGH_APS_FEE) { | ||||
warnings.push_back( | warnings.push_back( | ||||
AmountHighWarn("-maxapsfee") + Untranslated(" ") + | AmountHighWarn("-maxapsfee") + Untranslated(" ") + | ||||
_("This is the maximum transaction fee you pay to prioritize " | _("This is the maximum transaction fee you pay (in addition to" | ||||
"partial spend avoidance over regular coin selection.")); | " the normal fee) to prioritize partial spend avoidance over" | ||||
" regular coin selection.")); | |||||
} | } | ||||
walletInstance->m_max_aps_fee = n; | walletInstance->m_max_aps_fee = 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)) { | ||||
error = | error = | ||||
▲ Show 20 Lines • Show All 736 Lines • Show Last 20 Lines |