diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-22 16:54:18 -0800 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-26 13:30:54 -0800 |
commit | b1a936d4ae7dd9030b0720ef05579a90ce2894f1 (patch) | |
tree | 15d237a7aa5e20bbcc15ca97366a9ae2c00a2eec /src/net.cpp | |
parent | 094c3beaa47c909070607e94f2544ed1472ddb17 (diff) | |
download | bitcoin-b1a936d4ae7dd9030b0720ef05579a90ce2894f1.tar.xz |
[rpc] Remove deprecated "whitelisted" field from getpeerinfo
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp index f2bcb3226b..2f11a61321 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -599,7 +599,6 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap) X(mapRecvBytesPerMsgCmd); X(nRecvBytes); } - X(m_legacyWhitelisted); X(m_permissionFlags); if (m_tx_relay != nullptr) { LOCK(m_tx_relay->cs_feeFilter); @@ -1122,8 +1121,6 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) { CNode* pnode = new CNode(id, nodeServices, GetBestHeight(), hSocket, addr, CalculateKeyedNetGroup(addr), nonce, addr_bind, "", ConnectionType::INBOUND, inbound_onion); pnode->AddRef(); pnode->m_permissionFlags = permissionFlags; - // If this flag is present, the user probably expect that RPC and QT report it as whitelisted (backward compatibility) - pnode->m_legacyWhitelisted = legacyWhitelisted; pnode->m_prefer_evict = discouraged; m_msgproc->InitializeNode(pnode); |