Skip to content

Commit cd761e6

Browse files
committed
rpc: Add note on guarantees to getblockfrompeer
1 parent 8ab1923 commit cd761e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpc/blockchain.cpp

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

0 commit comments

Comments
 (0)