aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/client.cpp
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2023-08-15 12:02:14 -0400
committerMartin Zumsande <mzumsande@gmail.com>2023-08-22 13:28:15 -0400
commita9a1d69391596f57851f545fae12f8851149d2c3 (patch)
tree0db551032f05a88bcd5d8969ca2f6d13895092b6 /src/rpc/client.cpp
parent6ce5e8f4758e6fccf59b3980af417ec6c75e383e (diff)
rpc: add test-only sendmsgtopeer rpc
This rpc can be used when we want a node to send a message, but cannot use a python P2P object, for example for testing of low-level net transport behavior.
Diffstat (limited to 'src/rpc/client.cpp')
-rw-r--r--src/rpc/client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp
index 2908c37c1f..0ee3f27761 100644
--- a/src/rpc/client.cpp
+++ b/src/rpc/client.cpp
@@ -299,6 +299,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "getnodeaddresses", 0, "count"},
{ "addpeeraddress", 1, "port"},
{ "addpeeraddress", 2, "tried"},
+ { "sendmsgtopeer", 0, "peer_id" },
{ "stop", 0, "wait" },
};
// clang-format on