Motivation
The getblocktemplate
help currently shows these available request parameters (as part of the template_request
object):
0$ ./bitcoin-cli help getblocktemplate
1
2...
3
4Arguments:
51. template_request (json object, optional, default={}) Format of the template
6 {
7 "mode": "str", (string, optional) This must be set to "template", "proposal" (see BIP 23), or omitted
8 "capabilities": [ (json array, optional) A list of strings
9 "str", (string) client side supported feature, 'longpoll', 'coinbasevalue', 'proposal', 'serverlist', 'workid'
10 ...
11 ],
12 "rules": [ (json array, required) A list of strings
13 "segwit", (string, required) (literal) indicates client side segwit support
14 "str", (string) other client side supported softfork deployment
15 ...
16 ],
17 }
18...
It seems two (optional) parameters are missing: longpollid
and data
.
Possible solution
Seems like a good first issue to me:
- Understand what both parameters do, their type etc.
- Add two entries to the
template_request
object, with a helpful concise description, and consider their optional status - Verify output is correct by calling
./bitcoin-cli help getblocktemplate
Useful Skills
No response
Guidance for new contributors
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.