Skip to content

Commit 925240d

Browse files
committed
Merge rpc_getblockfrompeer_nodeid_compat
2 parents 9ffb23b + ef1c43e commit 925240d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static RPCHelpMan getblockfrompeer()
461461
"Returns an empty JSON object if the request was successfully scheduled.",
462462
{
463463
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash to try to fetch"},
464-
{"peer_id", RPCArg::Type::NUM, RPCArg::Optional::NO, "The peer to fetch it from (see getpeerinfo for peer IDs)"},
464+
{"peer_id|nodeid", RPCArg::Type::NUM, RPCArg::Optional::NO, "The peer to fetch it from (see getpeerinfo for peer IDs)"},
465465
},
466466
RPCResult{RPCResult::Type::OBJ, "", /*optional=*/false, "", {}},
467467
RPCExamples{

src/rpc/client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
6767
{ "getbalance", 2, "include_watchonly" },
6868
{ "getbalance", 3, "avoid_reuse" },
6969
{ "getblockfrompeer", 1, "peer_id" },
70+
{ "getblockfrompeer", 1, "nodeid" },
7071
{ "getblockhash", 0, "height" },
7172
{ "maxmempool", 0, "megabytes" },
7273
{ "waitforblockheight", 0, "height" },

0 commit comments

Comments
 (0)