diff options
author | Jon Atack <jon@atack.com> | 2021-07-31 21:56:59 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-08-04 19:03:51 +0200 |
commit | d930c7f5b091687eb4208a5ffe8a2abe311d8054 (patch) | |
tree | e0460df9eb8367667dd86406f2193925caef42a5 /src/rpc | |
parent | 2b06af17470667a9c9ee68cb241936839b46bc33 (diff) |
p2p, rpc, test: address rate-limiting follow-ups
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/net.cpp | 2 |
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"}, |