@@ -280,8 +280,6 @@ struct CNodeState {
280
280
int nMisbehavior;
281
281
// ! Whether this peer should be disconnected and marked as discouraged (unless it has the noban permission).
282
282
bool m_should_discourage;
283
- // ! String name of this peer (debugging/logging purposes).
284
- const std::string name;
285
283
// ! The best known block we know this peer has announced.
286
284
const CBlockIndex *pindexBestKnownBlock;
287
285
// ! The hash of the last unknown block this peer has announced.
@@ -430,9 +428,8 @@ struct CNodeState {
430
428
// ! Whether this peer relays txs via wtxid
431
429
bool m_wtxid_relay{false };
432
430
433
- CNodeState (CAddress addrIn, std::string addrNameIn, bool is_inbound, bool is_manual) :
434
- address (addrIn), name(std::move(addrNameIn)), m_is_inbound(is_inbound),
435
- m_is_manual_connection (is_manual)
431
+ CNodeState (CAddress addrIn, bool is_inbound, bool is_manual)
432
+ : address(addrIn), m_is_inbound(is_inbound), m_is_manual_connection(is_manual)
436
433
{
437
434
fCurrentlyConnected = false ;
438
435
nMisbehavior = 0 ;
@@ -839,7 +836,7 @@ void PeerLogicValidation::InitializeNode(CNode *pnode) {
839
836
NodeId nodeid = pnode->GetId ();
840
837
{
841
838
LOCK (cs_main);
842
- 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 ()));
839
+ mapNodeState.emplace_hint (mapNodeState.end (), std::piecewise_construct, std::forward_as_tuple (nodeid), std::forward_as_tuple (addr, pnode->IsInboundConn (), pnode->IsManualConn ()));
843
840
}
844
841
if (!pnode->IsInboundConn ())
845
842
PushNodeVersion (*pnode, *connman, GetTime ());
0 commit comments