diff options
author | fanquake <fanquake@gmail.com> | 2023-07-19 12:13:07 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-07-19 12:26:09 +0100 |
commit | 3648a9b4f714b49a152f2bf0f9d5f4c8e1089add (patch) | |
tree | f87f7863e1df37f6b3c2146c534e945153debe3a /src/rpc | |
parent | 84c5416b03248c91aa7efe46555699f9f121d8a4 (diff) | |
parent | f6a26196cfb7e2c90e25f82b0e2f569a05013cae (diff) |
Merge bitcoin/bitcoin#28056: rpc: doc: Added `longpollid` and `data` params to `template_request`
f6a26196cfb7e2c90e25f82b0e2f569a05013cae Added `longpollid` and `data` params to `template_request` #27998 (Rhythm Garg)
Pull request description:
This PR will add the optional parameters `longpollid` and `data` to `template_request` as they were missing when calling `help getblocktemplate` in RPCHelpMan.
I request the maintainers to review this and let me know about any mistakes in the descriptions of the parameters.
This PR refers to the issue #27998
ACKs for top commit:
ItIsOHM:
> tACK [f6a2619](https://github.com/bitcoin/bitcoin/commit/f6a26196cfb7e2c90e25f82b0e2f569a05013cae)
russeree:
tACK https://github.com/bitcoin/bitcoin/commit/f6a26196cfb7e2c90e25f82b0e2f569a05013cae
stickies-v:
tACK f6a26196cfb7e2c90e25f82b0e2f569a05013cae
Tree-SHA512: 6c592db59cb11b2d031ce5265c547fa296266278f6c25f96afe18a420e0d547f4d483e0f66de75d52c0c319ac1585f3558b9f70c12ef208c96ec96a51f786c6a
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 074cecadd2..1f9b264626 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -566,6 +566,8 @@ static RPCHelpMan getblocktemplate() {"segwit", RPCArg::Type::STR, RPCArg::Optional::NO, "(literal) indicates client side segwit support"}, {"str", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "other client side supported softfork deployment"}, }}, + {"longpollid", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "delay processing request until the result would vary significantly from the \"longpollid\" of a prior template"}, + {"data", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "proposed block data to check, encoded in hexadecimal; valid only for mode=\"proposal\""}, }, RPCArgOptions{.oneline_description="\"template_request\""}}, }, |