Skip to content

Commit 4eb1f39

Browse files
author
MarcoFalke
committed
Merge #11173: RPC: Fix currency unit string in the help text
47ba2c3 Fix currency/fee-rate unit string in the help text (Akio Nakamura) Pull request description: 1. The RPC help text should use the constant `CURRENCY_UNIT` defined in `policy/feerate.cpp` instead of the literal `'BTC'`. In the following 2 RPC commands, `'BTC'` is written directly in the help text. This commit changes them to use that constant. 1) `estimatesmartfee` 2) `estimaterawfee` 2. Some RPC command use `'satoshis'` as the unit. It should be written as `'satoshis'` instead of `'Satoshis'` in the RPC help text. So, this commit fixes this typo in `getblocktemplate`. Tree-SHA512: d0bd1cd90560e59bf456b076b958a2a1c998f85a7e65aeb6b2abcaba18919a3ae62f7c3909210461084c1a3275a35b6ba3ea3ec8f5cce33702ffe383c9e84bce
2 parents 001041d + 47ba2c3 commit 4eb1f39

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ UniValue getmempoolinfo(const JSONRPCRequest& request)
13441344
" \"bytes\": xxxxx, (numeric) Sum of all virtual transaction sizes as defined in BIP 141. Differs from actual serialized size because witness data is discounted\n"
13451345
" \"usage\": xxxxx, (numeric) Total memory usage for the mempool\n"
13461346
" \"maxmempool\": xxxxx, (numeric) Maximum memory usage for the mempool\n"
1347-
" \"mempoolminfee\": xxxxx (numeric) Minimum feerate (" + CURRENCY_UNIT + " per KB) for tx to be accepted\n"
1347+
" \"mempoolminfee\": xxxxx (numeric) Minimum fee rate in " + CURRENCY_UNIT + "/kB for tx to be accepted\n"
13481348
"}\n"
13491349
"\nExamples:\n"
13501350
+ HelpExampleCli("getmempoolinfo", "")

src/rpc/mining.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
336336
" n (numeric) transactions before this one (by 1-based index in 'transactions' list) that must be present in the final block if this one is\n"
337337
" ,...\n"
338338
" ],\n"
339-
" \"fee\": n, (numeric) difference in value between transaction inputs and outputs (in Satoshis); for coinbase transactions, this is a negative Number of the total collected block fees (ie, not including the block subsidy); if key is not present, fee is unknown and clients MUST NOT assume there isn't one\n"
339+
" \"fee\": n, (numeric) difference in value between transaction inputs and outputs (in satoshis); for coinbase transactions, this is a negative Number of the total collected block fees (ie, not including the block subsidy); if key is not present, fee is unknown and clients MUST NOT assume there isn't one\n"
340340
" \"sigops\" : n, (numeric) total SigOps cost, as counted for purposes of block limits; if key is not present, sigop cost is unknown and clients MUST NOT assume it is zero\n"
341341
" \"weight\" : n, (numeric) total transaction weight, as counted for purposes of block limits\n"
342342
" \"required\" : true|false (boolean) if provided and true, this transaction must be in the final block\n"
@@ -346,7 +346,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
346346
" \"coinbaseaux\" : { (json object) data that should be included in the coinbase's scriptSig content\n"
347347
" \"flags\" : \"xx\" (string) key name is to be ignored, and value included in scriptSig\n"
348348
" },\n"
349-
" \"coinbasevalue\" : n, (numeric) maximum allowable input to coinbase transaction, including the generation award and transaction fees (in Satoshis)\n"
349+
" \"coinbasevalue\" : n, (numeric) maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)\n"
350350
" \"coinbasetxn\" : { ... }, (json object) information for coinbase transaction\n"
351351
" \"target\" : \"xxxx\", (string) The hash target\n"
352352
" \"mintime\" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)\n"
@@ -825,7 +825,7 @@ UniValue estimatesmartfee(const JSONRPCRequest& request)
825825
" \"CONSERVATIVE\"\n"
826826
"\nResult:\n"
827827
"{\n"
828-
" \"feerate\" : x.x, (numeric, optional) estimate fee-per-kilobyte (in BTC)\n"
828+
" \"feerate\" : x.x, (numeric, optional) estimate fee rate in " + CURRENCY_UNIT + "/kB\n"
829829
" \"errors\": [ str... ] (json array of strings, optional) Errors encountered during processing\n"
830830
" \"blocks\" : n (numeric) block number where estimate was found\n"
831831
"}\n"
@@ -884,7 +884,7 @@ UniValue estimaterawfee(const JSONRPCRequest& request)
884884
"\nResult:\n"
885885
"{\n"
886886
" \"short\" : { (json object, optional) estimate for short time horizon\n"
887-
" \"feerate\" : x.x, (numeric, optional) estimate fee-per-kilobyte (in BTC)\n"
887+
" \"feerate\" : x.x, (numeric, optional) estimate fee rate in " + CURRENCY_UNIT + "/kB\n"
888888
" \"decay\" : x.x, (numeric) exponential decay (per block) for historical moving average of confirmation data\n"
889889
" \"scale\" : x, (numeric) The resolution of confirmation targets at this time horizon\n"
890890
" \"pass\" : { (json object, optional) information about the lowest range of feerates to succeed in meeting the threshold\n"

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2833,7 +2833,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
28332833
" \"changePosition\" (numeric, optional, default random) The index of the change output\n"
28342834
" \"includeWatching\" (boolean, optional, default false) Also select inputs which are watch only\n"
28352835
" \"lockUnspents\" (boolean, optional, default false) Lock selected unspent outputs\n"
2836-
" \"feeRate\" (numeric, optional, default not set: makes wallet determine the fee) Set a specific feerate (" + CURRENCY_UNIT + " per KB)\n"
2836+
" \"feeRate\" (numeric, optional, default not set: makes wallet determine the fee) Set a specific fee rate in " + CURRENCY_UNIT + "/kB\n"
28372837
" \"subtractFeeFromOutputs\" (array, optional) A json array of integers.\n"
28382838
" The fee will be equally deducted from the amount of each specified output.\n"
28392839
" The outputs are specified by their zero-based index, before any change output is added.\n"

0 commit comments

Comments
 (0)