|
16 | 16 | std::string GetWalletHelpString(bool showDebug) |
17 | 17 | { |
18 | 18 | std::string strUsage = HelpMessageGroup(_("Wallet options:")); |
19 | | - strUsage += HelpMessageOpt("-addresstype", strprintf(_("What type of addresses to use (\"legacy\", \"p2sh-segwit\", or \"bech32\", default: \"%s\")"), FormatOutputType(OUTPUT_TYPE_DEFAULT))); |
20 | | - strUsage += HelpMessageOpt("-changetype", _("What type of change to use (\"legacy\", \"p2sh-segwit\", or \"bech32\", default is same as -addresstype)")); |
| 19 | + strUsage += HelpMessageOpt("-defaultaddresstype", strprintf(_("What type of addresses to use (\"legacy\", \"p2sh-segwit\", or \"bech32\", default: \"%s\")"), FormatOutputType(OUTPUT_TYPE_DEFAULT))); |
| 20 | + strUsage += HelpMessageOpt("-defaultchangetype", _("What type of change to use (\"legacy\", \"p2sh-segwit\", or \"bech32\", default is same as -defaultaddresstype)")); |
21 | 21 | strUsage += HelpMessageOpt("-disablewallet", _("Do not load the wallet and disable wallet RPC calls")); |
22 | 22 | strUsage += HelpMessageOpt("-keypool=<n>", strprintf(_("Set key pool size to <n> (default: %u)"), DEFAULT_KEYPOOL_SIZE)); |
23 | 23 | strUsage += HelpMessageOpt("-fallbackfee=<amt>", strprintf(_("A fee rate (in %s/kB) that will be used when fee estimation has insufficient data (default: %s)"), |
@@ -177,14 +177,14 @@ bool WalletParameterInteraction() |
177 | 177 | bSpendZeroConfChange = gArgs.GetBoolArg("-spendzeroconfchange", DEFAULT_SPEND_ZEROCONF_CHANGE); |
178 | 178 | fWalletRbf = gArgs.GetBoolArg("-walletrbf", DEFAULT_WALLET_RBF); |
179 | 179 |
|
180 | | - g_address_type = ParseOutputType(gArgs.GetArg("-addresstype", "")); |
| 180 | + g_address_type = ParseOutputType(gArgs.GetArg("-defaultaddresstype", "")); |
181 | 181 | if (g_address_type == OUTPUT_TYPE_NONE) { |
182 | | - return InitError(strprintf(_("Unknown address type '%s'"), gArgs.GetArg("-addresstype", ""))); |
| 182 | + return InitError(strprintf(_("Unknown address type '%s'"), gArgs.GetArg("-defaultaddresstype", ""))); |
183 | 183 | } |
184 | 184 |
|
185 | | - g_change_type = ParseOutputType(gArgs.GetArg("-changetype", ""), g_address_type); |
| 185 | + g_change_type = ParseOutputType(gArgs.GetArg("-defaultchangetype", ""), g_address_type); |
186 | 186 | if (g_change_type == OUTPUT_TYPE_NONE) { |
187 | | - return InitError(strprintf(_("Unknown change type '%s'"), gArgs.GetArg("-changetype", ""))); |
| 187 | + return InitError(strprintf(_("Unknown change type '%s'"), gArgs.GetArg("-defaultchangetype", ""))); |
188 | 188 | } |
189 | 189 |
|
190 | 190 | return true; |
|
0 commit comments