diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net_processing.cpp | 9 |
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()); |