From f6a26196cfb7e2c90e25f82b0e2f569a05013cae Mon Sep 17 00:00:00 2001 From: Rhythm Garg Date: Sun, 9 Jul 2023 12:14:32 +0530 Subject: [PATCH] Added `longpollid` and `data` params to `template_request` #27998 Added `longpollid` and `data` params to `template_request` in `getblocktemplate` #27998 --- src/rpc/mining.cpp | 2 ++ 1 file changed, 2 insertions(+) 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\""}}, },