Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,903 Lines • ▼ Show 20 Lines | if (gArgs.IsArgSet("-mintxfee")) { | ||||
AmountHighWarn("-mintxfee").translated + " " + | AmountHighWarn("-mintxfee").translated + " " + | ||||
_("This is the minimum transaction fee you pay on " | _("This is the minimum transaction fee you pay on " | ||||
"every transaction.") | "every transaction.") | ||||
.translated); | .translated); | ||||
} | } | ||||
walletInstance->m_min_fee = CFeeRate(n); | walletInstance->m_min_fee = CFeeRate(n); | ||||
} | } | ||||
walletInstance->m_allow_fallback_fee = Params().IsTestChain(); | |||||
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)) { | ||||
chain.initError(strprintf( | chain.initError(strprintf( | ||||
_("Invalid amount for -fallbackfee=<amount>: '%s'").translated, | _("Invalid amount for -fallbackfee=<amount>: '%s'").translated, | ||||
gArgs.GetArg("-fallbackfee", ""))); | gArgs.GetArg("-fallbackfee", ""))); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines |