mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-07 05:31:03 +02:00
doc: Add missing optional to getblockfrompeer
This commit is contained in:
parent
f6013265b7
commit
aaaa34e34d
@ -777,7 +777,8 @@ static RPCHelpMan getmempoolentry()
|
|||||||
|
|
||||||
static RPCHelpMan getblockfrompeer()
|
static RPCHelpMan getblockfrompeer()
|
||||||
{
|
{
|
||||||
return RPCHelpMan{"getblockfrompeer",
|
return RPCHelpMan{
|
||||||
|
"getblockfrompeer",
|
||||||
"\nAttempt to fetch block from a given peer.\n"
|
"\nAttempt to fetch block from a given peer.\n"
|
||||||
"\nWe must have the header for this block, e.g. using submitheader.\n"
|
"\nWe must have the header for this block, e.g. using submitheader.\n"
|
||||||
"\nReturns {} if a block-request was successfully scheduled\n",
|
"\nReturns {} if a block-request was successfully scheduled\n",
|
||||||
@ -787,7 +788,7 @@ static RPCHelpMan getblockfrompeer()
|
|||||||
},
|
},
|
||||||
RPCResult{RPCResult::Type::OBJ, "", "",
|
RPCResult{RPCResult::Type::OBJ, "", "",
|
||||||
{
|
{
|
||||||
{RPCResult::Type::STR, "warnings", "any warnings"}
|
{RPCResult::Type::STR, "warnings", /*optional=*/true, "any warnings"},
|
||||||
}},
|
}},
|
||||||
RPCExamples{
|
RPCExamples{
|
||||||
HelpExampleCli("getblockfrompeer", "\"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09\" 0")
|
HelpExampleCli("getblockfrompeer", "\"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09\" 0")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user