aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-07-29 08:57:15 +0100
committerJohn Newbery <john@johnnewbery.com>2020-08-12 10:10:22 +0100
commitaba03359a6e62a376ae44914f609f82a1556fc89 (patch)
treeb10d2f6815d5b88981e0429fcffd962c6ec4d14a /src/net_processing.cpp
parentce3bdd0ed1bbfeaa19a5b75dc07943118826f930 (diff)
downloadbitcoin-aba03359a6e62a376ae44914f609f82a1556fc89.tar.xz
[net processing] Remove CNodeState.name
This has been unused since logging peer IPs was removed from Misbehaving() in a8865f8b.
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 7188bd2154..9b40f26a80 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -280,8 +280,6 @@ struct CNodeState {
int nMisbehavior;
//! Whether this peer should be disconnected and marked as discouraged (unless it has the noban permission).
bool m_should_discourage;
- //! String name of this peer (debugging/logging purposes).
- const std::string name;
//! The best known block we know this peer has announced.
const CBlockIndex *pindexBestKnownBlock;
//! The hash of the last unknown block this peer has announced.
@@ -430,9 +428,8 @@ struct CNodeState {
//! Whether this peer relays txs via wtxid
bool m_wtxid_relay{false};
- CNodeState(CAddress addrIn, std::string addrNameIn, bool is_inbound, bool is_manual) :
- address(addrIn), name(std::move(addrNameIn)), m_is_inbound(is_inbound),
- m_is_manual_connection (is_manual)
+ CNodeState(CAddress addrIn, bool is_inbound, bool is_manual)
+ : address(addrIn), m_is_inbound(is_inbound), m_is_manual_connection(is_manual)
{
fCurrentlyConnected = false;
nMisbehavior = 0;
@@ -839,7 +836,7 @@ void PeerLogicValidation::InitializeNode(CNode *pnode) {
NodeId nodeid = pnode->GetId();
{
LOCK(cs_main);
- mapNodeState.emplace_hint(mapNodeState.end(), std::piecewise_construct, std::forward_as_tuple(nodeid), std::forward_as_tuple(addr, std::move(addrName), pnode->IsInboundConn(), pnode->IsManualConn()));
+ mapNodeState.emplace_hint(mapNodeState.end(), std::piecewise_construct, std::forward_as_tuple(nodeid), std::forward_as_tuple(addr, pnode->IsInboundConn(), pnode->IsManualConn()));
}
if(!pnode->IsInboundConn())
PushNodeVersion(*pnode, *connman, GetTime());