|
24 | 24 | #include <univalue.h>
|
25 | 25 |
|
26 | 26 | using common::FeeModeFromString;
|
27 |
| -using common::FeeModes; |
| 27 | +using common::FeeModesDetail; |
28 | 28 | using common::InvalidEstimateModeErrorMessage;
|
29 | 29 | using common::StringForFeeReason;
|
30 | 30 | using common::TransactionErrorString;
|
@@ -245,7 +245,7 @@ RPCHelpMan sendtoaddress()
|
245 | 245 | {"replaceable", RPCArg::Type::BOOL, RPCArg::DefaultHint{"wallet default"}, "Signal that this transaction can be replaced by a transaction (BIP 125)"},
|
246 | 246 | {"conf_target", RPCArg::Type::NUM, RPCArg::DefaultHint{"wallet -txconfirmtarget"}, "Confirmation target in blocks"},
|
247 | 247 | {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, "The fee estimate mode, must be one of (case insensitive):\n"
|
248 |
| - "\"" + FeeModes("\"\n\"") + "\""}, |
| 248 | + + FeeModesDetail(std::string("economical mode is used if the transaction is replaceable;\notherwise, conservative mode is used"))}, |
249 | 249 | {"avoid_reuse", RPCArg::Type::BOOL, RPCArg::Default{true}, "(only available if avoid_reuse wallet flag is set) Avoid spending from dirty addresses; addresses are considered\n"
|
250 | 250 | "dirty if they have previously been used in a transaction. If true, this also activates avoidpartialspends, grouping outputs by their addresses."},
|
251 | 251 | {"fee_rate", RPCArg::Type::AMOUNT, RPCArg::DefaultHint{"not set, fall back to wallet fee estimation"}, "Specify a fee rate in " + CURRENCY_ATOM + "/vB."},
|
@@ -349,7 +349,7 @@ RPCHelpMan sendmany()
|
349 | 349 | {"replaceable", RPCArg::Type::BOOL, RPCArg::DefaultHint{"wallet default"}, "Signal that this transaction can be replaced by a transaction (BIP 125)"},
|
350 | 350 | {"conf_target", RPCArg::Type::NUM, RPCArg::DefaultHint{"wallet -txconfirmtarget"}, "Confirmation target in blocks"},
|
351 | 351 | {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, "The fee estimate mode, must be one of (case insensitive):\n"
|
352 |
| - "\"" + FeeModes("\"\n\"") + "\""}, |
| 352 | + + FeeModesDetail(std::string("economical mode is used if the transaction is replaceable;\notherwise, conservative mode is used"))}, |
353 | 353 | {"fee_rate", RPCArg::Type::AMOUNT, RPCArg::DefaultHint{"not set, fall back to wallet fee estimation"}, "Specify a fee rate in " + CURRENCY_ATOM + "/vB."},
|
354 | 354 | {"verbose", RPCArg::Type::BOOL, RPCArg::Default{false}, "If true, return extra information about the transaction."},
|
355 | 355 | },
|
@@ -463,7 +463,7 @@ static std::vector<RPCArg> FundTxDoc(bool solving_data = true)
|
463 | 463 | std::vector<RPCArg> args = {
|
464 | 464 | {"conf_target", RPCArg::Type::NUM, RPCArg::DefaultHint{"wallet -txconfirmtarget"}, "Confirmation target in blocks", RPCArgOptions{.also_positional = true}},
|
465 | 465 | {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, "The fee estimate mode, must be one of (case insensitive):\n"
|
466 |
| - "\"" + FeeModes("\"\n\"") + "\"", RPCArgOptions{.also_positional = true}}, |
| 466 | + + FeeModesDetail(std::string("economical mode is used if the transaction is replaceable;\notherwise, conservative mode is used")), RPCArgOptions{.also_positional = true}}, |
467 | 467 | {
|
468 | 468 | "replaceable", RPCArg::Type::BOOL, RPCArg::DefaultHint{"wallet default"}, "Marks this transaction as BIP125-replaceable.\n"
|
469 | 469 | "Allows this transaction to be replaced by a transaction with higher fees"
|
@@ -1018,7 +1018,7 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
|
1018 | 1018 | "still be replaceable in practice, for example if it has unconfirmed ancestors which\n"
|
1019 | 1019 | "are replaceable).\n"},
|
1020 | 1020 | {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, "The fee estimate mode, must be one of (case insensitive):\n"
|
1021 |
| - "\"" + FeeModes("\"\n\"") + "\""}, |
| 1021 | + + FeeModesDetail(std::string("economical mode is used if the transaction is replaceable;\notherwise, conservative mode is used"))}, |
1022 | 1022 | {"outputs", RPCArg::Type::ARR, RPCArg::Default{UniValue::VARR}, "The outputs specified as key-value pairs.\n"
|
1023 | 1023 | "Each key may only appear once, i.e. there can only be one 'data' output, and no address may be duplicated.\n"
|
1024 | 1024 | "At least one output of either type must be specified.\n"
|
@@ -1205,7 +1205,7 @@ RPCHelpMan send()
|
1205 | 1205 | RPCArgOptions{.skip_type_check = true}},
|
1206 | 1206 | {"conf_target", RPCArg::Type::NUM, RPCArg::DefaultHint{"wallet -txconfirmtarget"}, "Confirmation target in blocks"},
|
1207 | 1207 | {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, "The fee estimate mode, must be one of (case insensitive):\n"
|
1208 |
| - "\"" + FeeModes("\"\n\"") + "\""}, |
| 1208 | + + FeeModesDetail(std::string("economical mode is used if the transaction is replaceable;\notherwise, conservative mode is used"))}, |
1209 | 1209 | {"fee_rate", RPCArg::Type::AMOUNT, RPCArg::DefaultHint{"not set, fall back to wallet fee estimation"}, "Specify a fee rate in " + CURRENCY_ATOM + "/vB."},
|
1210 | 1210 | {"options", RPCArg::Type::OBJ_NAMED_PARAMS, RPCArg::Optional::OMITTED, "",
|
1211 | 1211 | Cat<std::vector<RPCArg>>(
|
@@ -1331,7 +1331,7 @@ RPCHelpMan sendall()
|
1331 | 1331 | },
|
1332 | 1332 | {"conf_target", RPCArg::Type::NUM, RPCArg::DefaultHint{"wallet -txconfirmtarget"}, "Confirmation target in blocks"},
|
1333 | 1333 | {"estimate_mode", RPCArg::Type::STR, RPCArg::Default{"unset"}, "The fee estimate mode, must be one of (case insensitive):\n"
|
1334 |
| - "\"" + FeeModes("\"\n\"") + "\""}, |
| 1334 | + + FeeModesDetail(std::string("economical mode is used if the transaction is replaceable;\notherwise, conservative mode is used"))}, |
1335 | 1335 | {"fee_rate", RPCArg::Type::AMOUNT, RPCArg::DefaultHint{"not set, fall back to wallet fee estimation"}, "Specify a fee rate in " + CURRENCY_ATOM + "/vB."},
|
1336 | 1336 | {
|
1337 | 1337 | "options", RPCArg::Type::OBJ_NAMED_PARAMS, RPCArg::Optional::OMITTED, "",
|
|
0 commit comments