0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

Added longpollid and data params to template_request #27998

Added `longpollid` and `data` params to `template_request` in `getblocktemplate` #27998
This commit is contained in:
Rhythm Garg 2023-07-09 12:14:32 +05:30
parent 600c595b8d
commit f6a26196cf

View file

@ -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\""}},
},