aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/mining.cpp
diff options
context:
space:
mode:
authorRhythm Garg <rhythmgarg05@gmail.com>2023-07-09 12:14:32 +0530
committerRhythm Garg <rhythmgarg05@gmail.com>2023-07-14 20:48:16 +0530
commitf6a26196cfb7e2c90e25f82b0e2f569a05013cae (patch)
tree933560d28535f515ed2544cba9c4a8c710f3248b /src/rpc/mining.cpp
parent600c595b8d2f4bf049b9182d4a0aa88e4b34458d (diff)
downloadbitcoin-f6a26196cfb7e2c90e25f82b0e2f569a05013cae.tar.xz
Added `longpollid` and `data` params to `template_request` #27998
Added `longpollid` and `data` params to `template_request` in `getblocktemplate` #27998
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r--src/rpc/mining.cpp2
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\""}},
},