doc: Add note to getblockfrompeer on missing undo data

This commit is contained in:
Fabian Jahr 2024-03-17 17:41:17 +01:00
parent 4a1975008b
commit 8789dc8f31
No known key found for this signature in database
GPG key ID: F13D1E9D890798CD

View file

@ -429,6 +429,7 @@ static RPCHelpMan getblockfrompeer()
"getblockfrompeer",
"Attempt to fetch block from a given peer.\n\n"
"We must have the header for this block, e.g. using submitheader.\n"
"The block will not have any undo data which can limit the usage of the block data in a context where the undo data is needed.\n"
"Subsequent calls for the same block may 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"