@@ -2935,7 +2935,7 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
2935
2935
if (args.IsArgSet (" -fallbackfee" )) {
2936
2936
std::optional<CAmount> fallback_fee = ParseMoney (args.GetArg (" -fallbackfee" , " " ));
2937
2937
if (!fallback_fee) {
2938
- error = strprintf (_ (" Invalid amount for -fallbackfee =<amount>: '%s'" ), args.GetArg (" -fallbackfee" , " " ));
2938
+ error = strprintf (_ (" Invalid amount for %s =<amount>: '%s'" ), " -fallbackfee " , args.GetArg (" -fallbackfee" , " " ));
2939
2939
return nullptr ;
2940
2940
} else if (fallback_fee.value () > HIGH_TX_FEE_PER_KB) {
2941
2941
warnings.push_back (AmountHighWarn (" -fallbackfee" ) + Untranslated (" " ) +
@@ -2950,7 +2950,7 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
2950
2950
if (args.IsArgSet (" -discardfee" )) {
2951
2951
std::optional<CAmount> discard_fee = ParseMoney (args.GetArg (" -discardfee" , " " ));
2952
2952
if (!discard_fee) {
2953
- error = strprintf (_ (" Invalid amount for -discardfee =<amount>: '%s'" ), args.GetArg (" -discardfee" , " " ));
2953
+ error = strprintf (_ (" Invalid amount for %s =<amount>: '%s'" ), " -discardfee " , args.GetArg (" -discardfee" , " " ));
2954
2954
return nullptr ;
2955
2955
} else if (discard_fee.value () > HIGH_TX_FEE_PER_KB) {
2956
2956
warnings.push_back (AmountHighWarn (" -discardfee" ) + Untranslated (" " ) +
@@ -2972,8 +2972,8 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
2972
2972
walletInstance->m_pay_tx_fee = CFeeRate{pay_tx_fee.value (), 1000 };
2973
2973
2974
2974
if (chain && walletInstance->m_pay_tx_fee < chain->relayMinFee ()) {
2975
- error = strprintf (_ (" Invalid amount for -paytxfee =<amount>: '%s' (must be at least %s)" ),
2976
- args.GetArg (" -paytxfee" , " " ), chain->relayMinFee ().ToString ());
2975
+ error = strprintf (_ (" Invalid amount for %s =<amount>: '%s' (must be at least %s)" ),
2976
+ " -paytxfee " , args.GetArg (" -paytxfee" , " " ), chain->relayMinFee ().ToString ());
2977
2977
return nullptr ;
2978
2978
}
2979
2979
}
@@ -2984,12 +2984,12 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
2984
2984
error = AmountErrMsg (" maxtxfee" , args.GetArg (" -maxtxfee" , " " ));
2985
2985
return nullptr ;
2986
2986
} else if (max_fee.value () > HIGH_MAX_TX_FEE) {
2987
- warnings.push_back (_ (" -maxtxfee is set very high! Fees this large could be paid on a single transaction." ));
2987
+ warnings.push_back (strprintf ( _ (" %s is set very high! Fees this large could be paid on a single transaction." ), " -maxtxfee " ));
2988
2988
}
2989
2989
2990
2990
if (chain && CFeeRate{max_fee.value (), 1000 } < chain->relayMinFee ()) {
2991
- error = strprintf (_ (" Invalid amount for -maxtxfee =<amount>: '%s' (must be at least the minrelay fee of %s to prevent stuck transactions)" ),
2992
- args.GetArg (" -maxtxfee" , " " ), chain->relayMinFee ().ToString ());
2991
+ error = strprintf (_ (" Invalid amount for %s =<amount>: '%s' (must be at least the minrelay fee of %s to prevent stuck transactions)" ),
2992
+ " -maxtxfee " , args.GetArg (" -maxtxfee" , " " ), chain->relayMinFee ().ToString ());
2993
2993
return nullptr ;
2994
2994
}
2995
2995
0 commit comments