rpc: Add note on guarantees to getblockfrompeer

This commit is contained in:
Fabian Jahr 2021-12-18 12:42:30 +01:00
parent 8ab19237e1
commit cd761e6b2c
No known key found for this signature in database
GPG key ID: F13D1E9D890798CD

View file

@ -431,7 +431,8 @@ static RPCHelpMan getblockfrompeer()
"We must have the header for this block, e.g. using submitheader.\n"
"Subsequent calls for the same block and a new peer will cause the response from the previous peer to be ignored.\n"
"Peers generally ignore requests for a stale block that they never fully verified, or one that is more than a month old.\n"
"When a peer does not respond with a block, we will disconnect.\n\n"
"When a peer does not respond with a block, we will disconnect.\n"
"Note: The block could be re-pruned as soon as it is received.\n\n"
"Returns an empty JSON object if the request was successfully scheduled.",
{
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash to try to fetch"},