aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2021-12-08 19:44:46 +0700
committerSjors Provoost <sjors@sprovoost.nl>2021-12-24 16:28:54 +0100
commit809d66bb65aa78048e27c2a878d6f7becaecfe11 (patch)
tree346d908e0ca7a5ac4ca032fac6e1c9c2d616f3e2 /src/rpc/blockchain.cpp
parent0e3d7c5ee16d5a4c061ab9a57285bceb7899b512 (diff)
downloadbitcoin-809d66bb65aa78048e27c2a878d6f7becaecfe11.tar.xz
rpc: clarify getblockfrompeer behavior when called multiple times
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index c6c88f5057..93d5719e25 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -781,7 +781,8 @@ static RPCHelpMan getblockfrompeer()
"getblockfrompeer",
"\nAttempt to fetch block from a given peer.\n"
"\nWe must have the header for this block, e.g. using submitheader.\n"
- "\nReturns {} if a block-request was successfully scheduled\n",
+ "Subsequent calls for the same block and a new peer will cause the response from the previous peer to be ignored.\n"
+ "\nReturns an empty JSON object if the request was successfully scheduled.",
{
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
{"nodeid", RPCArg::Type::NUM, RPCArg::Optional::NO, "The node ID (see getpeerinfo for node IDs)"},