Skip to content

Commit

Permalink
doc: Add note to getblockfrompeer on missing undo data
Browse files Browse the repository at this point in the history
  • Loading branch information
fjahr committed Jun 22, 2024
1 parent 4a19750 commit 8789dc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8789dc8

Please sign in to comment.