kallewoof
commented at 12:42 AM on May 2, 2017:
member
Lots of people seem to be unaware that getmempoolentry even exists (myself included, before today; see #10300 & #10304), so adding a hint to getrawmempool seems warranted.
I was tempted to start adding "See also: ..." strings to all RPC commands but wasn't sure that was generally desired.
kallewoof force-pushed on May 2, 2017
fanquake added the label Docs and Output on May 2, 2017
fanquake added the label RPC/REST/ZMQ on May 2, 2017
junderw
commented at 10:19 AM on May 2, 2017:
contributor
utACK41bc5ba
TIL
jonasschnelli
commented at 1:04 PM on May 2, 2017:
contributor
Yes. Adding a hint makes sense.
Though I'm not sure if we should add it below the RPC/curl info. What speaks against mentioning getmempoolentry in the description?
instagibbs
commented at 5:56 PM on May 2, 2017:
member
agreed @jonasschnelli I think just putting that in the main body of help is best.
I might stop reading by the examples...
jnewbery
commented at 9:02 PM on May 2, 2017:
member
I agree with the others. The hint should be further up, between the main text and the arguments listing.
Otherwise utACK
kallewoof force-pushed on May 4, 2017
kallewoof
commented at 12:11 PM on May 4, 2017:
member
Moved hint to below description. Should it be a part of it (i.e. no space)? Below is current output:
$ ./bitcoin-cli -regtest help getrawmempool
getrawmempool ( verbose )
Returns all transaction ids in memory pool as a json array of string transaction ids.
Hint: use getmempoolentry to fetch a specific transaction from the mempool.
Arguments:
1. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids
Result: (for verbose = false):
[ (json array of string)
"transactionid" (string) The transaction id
,...
]
Result: (for verbose = true):
{ (json object)
"transactionid" : { (json object)
[omitted]
}
Examples:
> bitcoin-cli getrawmempool true
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
$
instagibbs
commented at 12:14 PM on May 4, 2017:
member
utACK
paveljanik
commented at 4:51 PM on May 5, 2017:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me