Simple edit of the RPC calls to remove redundant text ("A json object/array ...") from the beginning of help.
Fixes: #18258
356 | @@ -357,7 +357,7 @@ static UniValue createrawtransaction(const JSONRPCRequest& request) 357 | "Note that the transaction's inputs are not signed, and\n" 358 | "it is not stored in the wallet or transmitted to the network.\n", 359 | { 360 | - {"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "A json array of json objects", 361 | + {"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "The json objects",
{"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "The inputs",
or just plain empty
2138 | @@ -2139,7 +2139,7 @@ static UniValue lockunspent(const JSONRPCRequest& request) 2139 | "Also see the listunspent call\n", 2140 | { 2141 | {"unlock", RPCArg::Type::BOOL, RPCArg::Optional::NO, "Whether to unlock (true) or lock (false) the specified transactions"}, 2142 | - {"transactions", RPCArg::Type::ARR, /* default */ "empty array", "A json array of objects. Each object the txid (string) vout (numeric).", 2143 | + {"transactions", RPCArg::Type::ARR, /* default */ "empty array", "The objects and within each, the txid (string) vout (numeric).",
{"transactions", RPCArg::Type::ARR, /* default */ "empty array", "The transaction outputs and within each, the txid (string) vout (numeric).",
4129 | @@ -4130,7 +4130,7 @@ UniValue walletcreatefundedpsbt(const JSONRPCRequest& request) 4130 | "\nCreates and funds a transaction in the Partially Signed Transaction format. Inputs will be added if supplied inputs are not enough\n" 4131 | "Implements the Creator and Updater roles.\n", 4132 | { 4133 | - {"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "A json array of json objects", 4134 | + {"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "The json objects",
{"inputs", RPCArg::Type::ARR, RPCArg::Optional::NO, "The inputs",
Or just plain empty
4166 | @@ -4167,7 +4167,7 @@ UniValue walletcreatefundedpsbt(const JSONRPCRequest& request) 4167 | {"includeWatching", RPCArg::Type::BOOL, /* default */ "true for watch-only wallets, otherwise false", "Also select inputs which are watch only"}, 4168 | {"lockUnspents", RPCArg::Type::BOOL, /* default */ "false", "Lock selected unspent outputs"}, 4169 | {"feeRate", RPCArg::Type::AMOUNT, /* default */ "not set: makes wallet determine the fee", "Set a specific fee rate in " + CURRENCY_UNIT + "/kB"}, 4170 | - {"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "A json array of integers.\n" 4171 | + {"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "The integers.\n"
{"subtractFeeFromOutputs", RPCArg::Type::ARR, /* default */ "empty array", "The outputs to subtract the fee from.\n"
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
ACK after squash
Co-Authored-By: MarcoFalke <falke.marco@gmail.com>
Please squash your commits according to https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits
Sorry, thought I'd lost the suggestions from @MarcoFalke but they're all there after the squash. Thanks for those!
If you want the commit to be attributed to you, you might have to call git commit --amend --author="Name <your@github.email>".
Otherwise, this is good to merge now.
Or alternatively, add the mail that you used for the commit to your github settings, this will make it link to you as well.
Let's merge this immediately after the 0.20 feature freeze if we don't get response from the author.
Sorry, I didn't realise I had an old email address linked to my Github account. I've updated that now.
Milestone
0.20.0