diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-22 16:44:53 -0800 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-26 13:30:08 -0800 |
commit | 537053336fbc1b633e7c99286c3e3492eaca1e9d (patch) | |
tree | dd7fbe9373a6129088a8143522c0bdcd7862d13a /src | |
parent | 02cf20b9f571474c939d18a8b9d6b5d22479a222 (diff) | |
download | bitcoin-537053336fbc1b633e7c99286c3e3492eaca1e9d.tar.xz |
[rpc] Remove deprecated "addnode" field from getpeerinfo
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 1 | ||||
-rw-r--r-- | src/net.h | 1 | ||||
-rw-r--r-- | src/rpc/net.cpp | 6 |
3 files changed, 0 insertions, 8 deletions
diff --git a/src/net.cpp b/src/net.cpp index 7df0d11d37..f2bcb3226b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -587,7 +587,6 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap) X(cleanSubVer); } stats.fInbound = IsInboundConn(); - stats.m_manual_connection = IsManualConn(); X(m_bip152_highbandwidth_to); X(m_bip152_highbandwidth_from); { @@ -702,7 +702,6 @@ public: int nVersion; std::string cleanSubVer; bool fInbound; - bool m_manual_connection; bool m_bip152_highbandwidth_to; bool m_bip152_highbandwidth_from; int m_starting_height; diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 2a2246b15f..66e3202547 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -128,8 +128,6 @@ static RPCHelpMan getpeerinfo() {RPCResult::Type::BOOL, "inbound", "Inbound (true) or Outbound (false)"}, {RPCResult::Type::BOOL, "bip152_hb_to", "Whether we selected peer as (compact blocks) high-bandwidth peer"}, {RPCResult::Type::BOOL, "bip152_hb_from", "Whether peer selected us as (compact blocks) high-bandwidth peer"}, - {RPCResult::Type::BOOL, "addnode", "Whether connection was due to addnode/-connect or if it was an automatic/inbound connection\n" - "(DEPRECATED, returned only if the config option -deprecatedrpc=getpeerinfo_addnode is passed)"}, {RPCResult::Type::STR, "connection_type", "Type of connection: \n" + Join(CONNECTION_TYPE_DOC, ",\n") + ".\n" "Please note this output is unlikely to be stable in upcoming releases as we iterate to\n" "best capture connection behaviors."}, @@ -224,10 +222,6 @@ static RPCHelpMan getpeerinfo() obj.pushKV("inbound", stats.fInbound); obj.pushKV("bip152_hb_to", stats.m_bip152_highbandwidth_to); obj.pushKV("bip152_hb_from", stats.m_bip152_highbandwidth_from); - if (IsDeprecatedRPCEnabled("getpeerinfo_addnode")) { - // addnode is deprecated in v0.21 for removal in v0.22 - obj.pushKV("addnode", stats.m_manual_connection); - } if (fStateStats) { if (IsDeprecatedRPCEnabled("banscore")) { // banscore is deprecated in v0.21 for removal in v0.22 |