aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/net.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-07-31 21:56:59 +0200
committerJon Atack <jon@atack.com>2021-08-04 19:03:51 +0200
commitd930c7f5b091687eb4208a5ffe8a2abe311d8054 (patch)
treee0460df9eb8367667dd86406f2193925caef42a5 /src/rpc/net.cpp
parent2b06af17470667a9c9ee68cb241936839b46bc33 (diff)
downloadbitcoin-d930c7f5b091687eb4208a5ffe8a2abe311d8054.tar.xz
p2p, rpc, test: address rate-limiting follow-ups
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r--src/rpc/net.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index abc9ec3ce3..4d066b8957 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -151,6 +151,8 @@ static RPCHelpMan getpeerinfo()
{RPCResult::Type::NUM, "n", "The heights of blocks we're currently asking from this peer"},
}},
{RPCResult::Type::BOOL, "addr_relay_enabled", "Whether we participate in address relay with this peer"},
+ {RPCResult::Type::NUM, "addr_processed", "The total number of addresses processed, excluding those dropped due to rate limiting"},
+ {RPCResult::Type::NUM, "addr_rate_limited", "The total number of addresses dropped due to rate limiting"},
{RPCResult::Type::ARR, "permissions", "Any special permissions that have been granted to this peer",
{
{RPCResult::Type::STR, "permission_type", Join(NET_PERMISSIONS_DOC, ",\n") + ".\n"},